diff options
author | David S. Miller <davem@davemloft.net> | 2008-05-03 21:10:58 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-03 21:10:58 -0700 |
commit | e544ff00da4b53069dbca3debbfb02d455f72467 (patch) | |
tree | 9c89454dddc6c01dc179dd369a258caae0142b55 /drivers/net | |
parent | 41fef0ee7b8f3fe3f3dd2ddc9b170f3d88bce595 (diff) |
lapbeth: Release ->ethdev when unregistering device.
Otherwise it leaks forever.
Based upon a report by Roland <devzero@web.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wan/lapbether.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wan/lapbether.c b/drivers/net/wan/lapbether.c index b5860b97a93..24fd613466b 100644 --- a/drivers/net/wan/lapbether.c +++ b/drivers/net/wan/lapbether.c @@ -459,6 +459,7 @@ static void __exit lapbeth_cleanup_driver(void) list_for_each_safe(entry, tmp, &lapbeth_devices) { lapbeth = list_entry(entry, struct lapbethdev, node); + dev_put(lapbeth->ethdev); unregister_netdevice(lapbeth->axdev); } rtnl_unlock(); |