OSDN Git Service

net: memset smsg to avoid the padding data
authorKaustubh Pandey <kapandey@codeaurora.org>
Mon, 20 Aug 2018 07:30:36 +0000 (13:00 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Thu, 23 Aug 2018 11:05:39 +0000 (04:05 -0700)
commit7108e8fe0800d50cc68d986807d89378677d3769
treecf4b8117319501ca874bcc2f2bb1d8545f7c0068
parentc25026979f83f05b1518f6dd4076fcb9a6d16023
net: memset smsg to avoid the padding data

memset smsg to avoid the padding data of kernel to be shared
with user space. Fix is to set fields event to all "0", but there is
actually 6 bytes padding between "sktype" and "skflags", so memset was
done to set all the padding bits to 0.

CRs-Fixed: 2287852

Change-Id: I435486b80ad19c5fa54b098680623e7a4f080198
Signed-off-by: Kaustubh Pandey <kapandey@codeaurora.org>
Acked-by: Chinmay Agarwal <chinagar@qti.qualcomm.com>
net/core/sockev_nlmcast.c