linux_dsm_epyc7002/net/ncsi
Colin Ian King 8daf1a2d7e 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: 955dc68cb9 ("net/ncsi: Add generic netlink family")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-03-27 10:38:26 -04:00
..
internal.h net/ncsi: Add generic netlink family 2018-03-05 10:43:37 -05:00
Kconfig
Makefile net/ncsi: Add generic netlink family 2018-03-05 10:43:37 -05:00
ncsi-aen.c net/ncsi: Don't take any action on HNCDSC AEN 2017-12-18 14:50:11 -05:00
ncsi-cmd.c net/ncsi: Fix several packet definitions 2017-08-28 16:49:49 -07:00
ncsi-manage.c net/ncsi: Add generic netlink family 2018-03-05 10:43:37 -05:00
ncsi-netlink.c net/ncsi: check for null return from call to nla_nest_start 2018-03-27 10:38:26 -04:00
ncsi-netlink.h net/ncsi: Add generic netlink family 2018-03-05 10:43:37 -05:00
ncsi-pkt.h net/ncsi: Fix several packet definitions 2017-08-28 16:49:49 -07:00
ncsi-rsp.c net/ncsi: Don't return error on normal response 2017-11-11 15:09:44 +09:00