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)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 9 Jun 2014 12:28:56 +0000 (13:28 +0100)
commita8a695a43272a19b08004a3632da23d03170bd87
tree15ebb8ed7e17398b11fb492a641055b3694152e4
parent5976aed862c07c698554edb89955f3f554a0921e
net: ipv4: current group_info should be put after using.

[ Upstream commit b04c46190219a4f845e46a459e3102137b7f6cac ]

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/ipv4/ping.c