diff options
author | Stephen Hemminger <shemminger@osdl.org> | 2006-10-26 18:46:50 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:22:32 -0500 |
commit | 93ec2c723e3f8a216dde2899aeb85c648672bc6b (patch) | |
tree | a70a10812c2340edfce0d1010175535aa344d1c9 /include/linux | |
parent | a1bcfacd0577ff477e934731d4ceb3d26eab947d (diff) |
netpoll info leak
After looking harder, Steve noticed that the netpoll
beast leaked a little every time it shutdown for a nap.
Not a big leak, but a nuisance kind of thing.
He took out his refcount duct tape and patched the
leak. It was overkill since there was already other
locking in that area, but it looked clean and wouldn't
attract fleas.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/netpoll.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netpoll.h b/include/linux/netpoll.h index 1efe60c5c00c..39845fc975f9 100644 --- a/include/linux/netpoll.h +++ b/include/linux/netpoll.h | |||
@@ -25,6 +25,7 @@ struct netpoll { | |||
25 | }; | 25 | }; |
26 | 26 | ||
27 | struct netpoll_info { | 27 | struct netpoll_info { |
28 | atomic_t refcnt; | ||
28 | spinlock_t poll_lock; | 29 | spinlock_t poll_lock; |
29 | int poll_owner; | 30 | int poll_owner; |
30 | int tries; | 31 | int tries; |