]> 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)
commit1b412a684a9d722555e39b795aaa49bd54518a05
tree7e3801697acdf467bf5c7f7abe263b9cde96ba45
parent2b179ccb563d7e8cc05ec1ec791c2cf1133fbeff
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