aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2018-03-26 11:27:12 +0000
committerDavid S. Miller <[email protected]>2018-03-27 14:38:26 +0000
commit8daf1a2d7e40685054ebae680733d822ced6df62 (patch)
treed3f650d83596587b191d5d14bca64b26c58414a5 /net/unix/af_unix.c
parentsctp: remove unnecessary asoc in sctp_has_association (diff)
downloadkernel-8daf1a2d7e40685054ebae680733d822ced6df62.tar.gz
kernel-8daf1a2d7e40685054ebae680733d822ced6df62.zip
net/ncsi: check for null return from call to nla_nest_start
The call to nla_nest_start calls nla_put which can lead to a NULL return so it's possible for attr to become NULL and we can potentially get a NULL pointer dereference on attr. Fix this by checking for a NULL return. Detected by CoverityScan, CID#1466125 ("Dereference null return") Fixes: 955dc68cb9b2 ("net/ncsi: Add generic netlink family") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions