]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: Avoid assigning a NULL pointer to flow actions.
authorJarno Rajahalme <jrajahalme@nicira.com>
Mon, 5 May 2014 16:59:40 +0000 (09:59 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Thu, 22 May 2014 23:27:34 +0000 (16:27 -0700)
commit073f2f07519a89c833faf72ea9b6c0048e2e5e44
tree92764c69b9c3cda7a6263dd5163caeea57a6e815
parent6173b75c0bd3d4e17b79f9b67ad452c992ec4300
openvswitch: Avoid assigning a NULL pointer to flow actions.

Flow SET can accept an empty set of actions, with the intended
semantics of leaving existing actions unmodified.  This seems to have
been brokin after OVS 1.7, as we have assigned the flow's actions
pointer to NULL in this case, but we never check for the NULL pointer
later on.  This patch restores the intended behavior and documents it
in the include/linux/openvswitch.h.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
include/uapi/linux/openvswitch.h
net/openvswitch/datapath.c