]> git.baikalelectronics.ru Git - kernel.git/commit
net: openvswitch: fix missing checks for nla_nest_start
authorKangjie Lu <kjlu@umn.edu>
Fri, 15 Mar 2019 06:11:22 +0000 (01:11 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 Mar 2019 18:43:14 +0000 (11:43 -0700)
commit0f9a3eb7bdeed6b16070803e46b667ee580e2e96
tree7e3801697acdf467bf5c7f7abe263b9cde96ba45
parentf5cc0f91ebce645bb4510cfd74d260716d4b7e81
net: openvswitch: fix missing checks for nla_nest_start

nla_nest_start may fail and thus deserves a check.
The fix returns -EMSGSIZE when it fails.

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