]> git.proxmox.com Git - mirror_ovs.git/commit - datapath/datapath.c
datapath: fix missing checks for nla_nest_start
authorKangjie Lu <kjlu@umn.edu>
Wed, 27 Mar 2019 15:32:18 +0000 (08:32 -0700)
committerBen Pfaff <blp@ovn.org>
Wed, 17 Apr 2019 04:16:19 +0000 (21:16 -0700)
commiteee4c8eb3ce7f2e7f8ca12830670e2a61d79c0bf
tree0fb1849ff95179dd68c861da1de44526441c1927
parentf463bdc94a613b2570fad3b885ceb7351e7f3a03
datapath: fix missing checks for nla_nest_start

Upstream commit:
    commit 0fff9bd47e1341b5c4db862cc39fc68ce45f165d
    Author: Kangjie Lu <kjlu@umn.edu>
    Date:   Fri Mar 15 01:11:22 2019 -0500

    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>
Cc: Kangjie Lu <kjlu@umn.edu>
Reviewed-by: Yifeng Sun <pkusunyifeng@gmail.com>
Signed-off-by: Greg Rose <gvrose8192@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
datapath/datapath.c