Skip to content

Commit

Permalink
Revert "atm: Do not free already unregistered net device."
Browse files Browse the repository at this point in the history
This reverts commit 65e4113.

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 <davem@davemloft.net>
  • Loading branch information
David S. Miller committed May 6, 2008
1 parent 1944317 commit 5f6b1ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/atm/br2684.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -770,6 +771,7 @@ 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 5f6b1ea

Please sign in to comment.