]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3f7d66e135298bd8cb2cb24a554cfed85257707b
treef722cb5fa6902c344e5345e3156df61a30f4f6a4
parentfb46d10d8edb56056f0224388b013c6b325d8eae
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