net: ncsi: fix a missing check for nla_nest_start
authorKangjie Lu <kjlu@umn.edu>
Fri, 15 Mar 2019 06:14:33 +0000 (01:14 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 Mar 2019 18:44:33 +0000 (11:44 -0700)
commit07660ca679da3007d3231938e2dfb415d3440716
treea4699c20fd4ba7acb3bc4d7d55f66b4a839fd6b8
parent0fff9bd47e1341b5c4db862cc39fc68ce45f165d
net: ncsi: fix a missing check for nla_nest_start

nla_nest_start may fail and thus deserves a check.

The fix returns -EMSGSIZE in case it fails.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ncsi/ncsi-netlink.c