mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
atm: Do not free already unregistered net device.
Both br2684_push and br2684_exit do so, but unregister_netdev() releases the device itself. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
339a7c41c9
commit
65e4113684
1 changed files with 0 additions and 2 deletions
|
@ -350,7 +350,6 @@ static void br2684_push(struct atm_vcc *atmvcc, struct sk_buff *skb)
|
|||
list_del(&brdev->br2684_devs);
|
||||
read_unlock(&devs_lock);
|
||||
unregister_netdev(net_dev);
|
||||
free_netdev(net_dev);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
@ -771,7 +770,6 @@ static void __exit br2684_exit(void)
|
|||
|
||||
list_del(&brdev->br2684_devs);
|
||||
unregister_netdev(net_dev);
|
||||
free_netdev(net_dev);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue