net: ipv4: current group_info should be put after using.
authorWang, Xiaoming <xiaoming.wang@intel.com>
Mon, 14 Apr 2014 16:30:45 +0000 (12:30 -0400)
committerJP Abgrall <jpa@google.com>
Fri, 25 Apr 2014 00:36:41 +0000 (17:36 -0700)
commita8fe78a7aa86edfb1259585d2f6cb39b9fce768e
treea1ef5bb55e5b3941992a5be4c12fe89928a78092
parent70dc3ed48fb6c02d2c651505d41f8988570f2f81
net: ipv4: current group_info should be put after using.

Plug a group_info refcount leak in ping_init.
group_info is only needed during initialization and
the code failed to release the reference on exit.
While here move grabbing the reference to a place
where it is actually needed.

Signed-off-by: Chuansheng Liu <chuansheng.liu@intel.com>
Signed-off-by: Zhang Dongxing <dongxing.zhang@intel.com>
Signed-off-by: xiaoming wang <xiaoming.wang@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ping.c