]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Apr 2014 02:52:58 +0000 (22:52 -0400)
commit298440d8dfaa2fd47b6d6c80fd80d87be918f2ec
treed176026196edd1e7e2590906a9a7bea824dff1dd
parentb5fafa9091b21f39daebe9bb09bc5520e8fff42c
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