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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 May 2014 04:52:15 +0000 (21:52 -0700)
commit8dbc8dc8e84b998ca8a7394ae22614f3a58d4c38
tree237c0096821bb1dda24b7fc6f8c3a964c57d36f2
parent4008a994ddcee13c1baa7ed8a7e66fcbddc85d29
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/ping.c