Commit 65e41136 authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by David S. Miller

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: default avatarPavel Emelyanov <xemul@openvz.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 339a7c41
...@@ -350,7 +350,6 @@ static void br2684_push(struct atm_vcc *atmvcc, struct sk_buff *skb) ...@@ -350,7 +350,6 @@ static void br2684_push(struct atm_vcc *atmvcc, struct sk_buff *skb)
list_del(&brdev->br2684_devs); list_del(&brdev->br2684_devs);
read_unlock(&devs_lock); read_unlock(&devs_lock);
unregister_netdev(net_dev); unregister_netdev(net_dev);
free_netdev(net_dev);
} }
return; return;
} }
...@@ -771,7 +770,6 @@ static void __exit br2684_exit(void) ...@@ -771,7 +770,6 @@ static void __exit br2684_exit(void)
list_del(&brdev->br2684_devs); list_del(&brdev->br2684_devs);
unregister_netdev(net_dev); unregister_netdev(net_dev);
free_netdev(net_dev);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment