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)
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>

No differences found