Skip to content

Commit

Permalink
atm: Do not free already unregistered net device.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed May 5, 2008
1 parent 339a7c4 commit 65e4113
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/atm/br2684.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -771,7 +770,6 @@ static void __exit br2684_exit(void)

list_del(&brdev->br2684_devs);
unregister_netdev(net_dev);
free_netdev(net_dev);
}
}

Expand Down

0 comments on commit 65e4113

Please sign in to comment.