linux-stable-rt/net
Satyam Sharma 1498b3f195 [NETPOLL]: Fix a leak-n-bug in netpoll_cleanup()
93ec2c723e applied excessive duct tape to
the netpoll beast's netpoll_cleanup(), thus substituting one leak with
another, and opening up a little buglet :-)

net_device->npinfo (netpoll_info) is a shared and refcounted object and
cannot simply be set NULL the first time netpoll_cleanup() is called.
Otherwise, further netpoll_cleanup()'s see np->dev->npinfo == NULL and
become no-ops, thus leaking. And it's a bug too: the first call to
netpoll_cleanup() would thus (annoyingly) "disable" other (still alive)
netpolls too. Maybe nobody noticed this because netconsole (only user
of netpoll) never supported multiple netpoll objects earlier.

This is a trivial and obvious one-line fixlet.

Signed-off-by: Satyam Sharma <ssatyam@cse.iitk.ac.in>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-07-10 22:19:02 -07:00
..
802
8021q [VLAN]: Use rtnl_link API 2007-07-10 22:15:03 -07:00
appletalk
atm [ATM] br2684: Use seq_list_xxx helpers 2007-07-10 22:18:48 -07:00
ax25
bluetooth
bridge [NET]: IPV6 checksum offloading in network devices 2007-07-10 22:15:52 -07:00
core [NETPOLL]: Fix a leak-n-bug in netpoll_cleanup() 2007-07-10 22:19:02 -07:00
dccp [DCCP]: Make struct dccp_li_cachep static. 2007-07-10 22:18:52 -07:00
decnet [NET]: dev_mcast: unexport dev_mc_upload 2007-07-10 22:15:53 -07:00
econet
ethernet [CORE] Stack changes to add multiqueue hardware support API 2007-07-10 22:16:21 -07:00
ieee80211
ipv4 [NETFILTER] net/ipv4/netfilter/ip_tables.c: lower printk severity 2007-07-10 22:18:53 -07:00
ipv6 [NETFILTER]: Convert DEBUGP to pr_debug 2007-07-10 22:18:20 -07:00
ipx
irda [IrDA]: tsap init routine factorisation. 2007-07-10 22:16:52 -07:00
iucv
key
lapb
llc
mac80211 [MAC80211]: Set low initial rate in rc80211_simple 2007-07-10 22:16:25 -07:00
netfilter [NETFILTER]: x_tables: add more detail to error message about match/target mask mismatch 2007-07-10 22:18:29 -07:00
netlabel
netlink [NETLINK]: attr: add nested compat attribute type 2007-07-10 22:15:38 -07:00
netrom
packet
rfkill
rose
rxrpc [NET]: Make some network-related proc files use seq_list_xxx helpers 2007-07-10 22:18:49 -07:00
sched [NET_SCHED]: Remove unnecessary includes 2007-07-10 22:16:41 -07:00
sctp
sunrpc
tipc [TIPC]: Optimize stream send routine to avoid fragmentation 2007-07-10 22:06:12 -07:00
unix
wanrouter
wireless
x25
xfrm [XFRM] Introduce standalone SAD lookup 2007-07-10 22:16:35 -07:00
Kconfig
Makefile [RXRPC]: Remove Makefile reference to obsolete RXRPC config variable 2007-07-10 22:19:01 -07:00
TUNABLE
compat.c
nonet.c
socket.c
sysctl_net.c