]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: check for null pointer return from nla_nest_start_noflag
authorColin Ian King <colin.king@canonical.com>
Wed, 1 May 2019 13:41:58 +0000 (14:41 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 May 2019 07:52:07 +0000 (00:52 -0700)
commit76f68220d3d263b287c700825550004ab423d085
treeea6ce737f3ecae9b9a8dd08dac5a4e538cd18891
parentf6ada6a8da7008d59647b6844bffd164bcffcf20
openvswitch: check for null pointer return from nla_nest_start_noflag

The call to nla_nest_start_noflag can return null in the unlikely
event that nla_put returns -EMSGSIZE.  Check for this condition to
avoid a null pointer dereference on pointer nla_reply.

Addresses-Coverity: ("Dereference null return value")
Fixes: 37a6f9df29d7 ("openvswitch: Support conntrack zone limit")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Yi-Hung Wei <yihung.wei@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/conntrack.c