]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit0fff9bd47e1341b5c4db862cc39fc68ce45f165d
tree7e3801697acdf467bf5c7f7abe263b9cde96ba45
parent6f19893b644a9454d85e593b5e90914e7a72b7dd
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