From: David S. Miller Date: Tue, 6 May 2008 07:00:16 +0000 (-0700) Subject: Revert "atm: Do not free already unregistered net device." X-Git-Tag: v2.6.26-rc2~19^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f6b1ea41b46bc63f667f9b30d939b49734c20b0;p=platform%2Fkernel%2Flinux-3.10.git Revert "atm: Do not free already unregistered net device." This reverts commit 65e4113684e50cee75357ce10dc9026b0929e4e9. Unlike the other cases Pavel fixed, this case did not setup a netdev->destructor of free_netdev, therefore this change was not correct. Signed-off-by: David S. Miller --- diff --git a/net/atm/br2684.c b/net/atm/br2684.c index 13858e2..9d52ebfc 100644 --- a/net/atm/br2684.c +++ b/net/atm/br2684.c @@ -350,6 +350,7 @@ static void br2684_push(struct atm_vcc *atmvcc, struct sk_buff *skb) list_del(&brdev->br2684_devs); write_unlock_irq(&devs_lock); unregister_netdev(net_dev); + free_netdev(net_dev); } return; } @@ -770,6 +771,7 @@ static void __exit br2684_exit(void) list_del(&brdev->br2684_devs); unregister_netdev(net_dev); + free_netdev(net_dev); } }