openvswitch: fix a memory leak
authorLi RongQing <roy.qing.li@gmail.com>
Tue, 2 Sep 2014 12:52:28 +0000 (20:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Sep 2014 21:01:21 +0000 (14:01 -0700)
commit4ee45ea05c8710c7ab8a5eb1a72700b874712746
treec2a32f22db45511bfd6c896759bbbe5e15136032
parent41ad82f7f8f59a472c8e8ccca56a9c6bdf3c5092
openvswitch: fix a memory leak

The user_skb maybe be leaked if the operation on it failed and codes
skipped into the label "out:" without calling genlmsg_unicast.

Cc: Pravin Shelar <pshelar@nicira.com>
Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/datapath.c