]> 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)
commitc6df97a5c6929c1f65665d63fc5ffe690b7669c6
treef722cb5fa6902c344e5345e3156df61a30f4f6a4
parent26ef99d7a34d8684266969f6a2fa9c140304b31a
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