]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5186d6d2bd05a584e070f54974e7bc63e9152e5f
treea4699c20fd4ba7acb3bc4d7d55f66b4a839fd6b8
parent0f9a3eb7bdeed6b16070803e46b667ee580e2e96
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