openvswitch: potential NULL deref in sample()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 23 Jul 2012 07:46:28 +0000 (10:46 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Jul 2012 07:59:54 +0000 (00:59 -0700)
commit5b3e7e6cb5771bedda51cdb6f715d1da8cd9e644
treef722cb5fa6902c344e5345e3156df61a30f4f6a4
parent563d34d05786263893ba4a1042eb9b9374127cf5
openvswitch: potential NULL deref in sample()

If there is no OVS_SAMPLE_ATTR_ACTIONS set then "acts_list" is NULL and
it leads to a NULL dereference when we call nla_len(acts_list).  This
is a static checker fix, not something I have seen in testing.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/actions.c