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)
committerJiri Slaby <jslaby@suse.cz>
Mon, 5 May 2014 11:39:42 +0000 (13:39 +0200)
commit95c3a5624ae783081cc9d9b0e3d24ea19b36590e
tree4cb22e8031bda150b9b2118d57d43eee1abd109b
parent95846d96fc3739c515e6c20b0fcea97ab290f09c
net: ipv4: current group_info should be put after using.

commit b04c46190219a4f845e46a459e3102137b7f6cac upstream.

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: Jiri Slaby <jslaby@suse.cz>
net/ipv4/ping.c