aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-05-04 21:00:05 -0400
committerDavid S. Miller <davem@davemloft.net>2008-05-04 21:00:05 -0400
commit65e4113684e50cee75357ce10dc9026b0929e4e9 (patch)
tree9f3f8230f06254319256f0336f143d5c701802f0
parent339a7c41c913035bf58579f6e47b4ba29da83795 (diff)
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>
-rw-r--r--net/atm/br2684.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/atm/br2684.c b/net/atm/br2684.c
index 1b228065e745..3a74ff8ca45d 100644
--- a/net/atm/br2684.c
+++ b/net/atm/br2684.c
@@ -350,7 +350,6 @@ static void br2684_push(struct atm_vcc *atmvcc, struct sk_buff *skb)
350 list_del(&brdev->br2684_devs); 350 list_del(&brdev->br2684_devs);
351 read_unlock(&devs_lock); 351 read_unlock(&devs_lock);
352 unregister_netdev(net_dev); 352 unregister_netdev(net_dev);
353 free_netdev(net_dev);
354 } 353 }
355 return; 354 return;
356 } 355 }
@@ -771,7 +770,6 @@ static void __exit br2684_exit(void)
771 770
772 list_del(&brdev->br2684_devs); 771 list_del(&brdev->br2684_devs);
773 unregister_netdev(net_dev); 772 unregister_netdev(net_dev);
774 free_netdev(net_dev);
775 } 773 }
776} 774}
777 775