projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
339a7c4
)
atm: Do not free already unregistered net device.
author
Pavel Emelyanov
<xemul@openvz.org>
Mon, 5 May 2008 01:00:05 +0000
(18:00 -0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 5 May 2008 01:00:05 +0000
(18:00 -0700)
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>
net/atm/br2684.c
patch
|
blob
|
blame
|
history
diff --git
a/net/atm/br2684.c
b/net/atm/br2684.c
index 1b228065e745c812ee8db3d6ca0b3bb68586b796..3a74ff8ca45dd0198ff72be2353b054d7c7a86a1 100644
(file)
--- 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)
list_del(&brdev->br2684_devs);
read_unlock(&devs_lock);
unregister_netdev(net_dev);
- free_netdev(net_dev);
}
return;
}
@@
-771,7
+770,6
@@
static void __exit br2684_exit(void)
list_del(&brdev->br2684_devs);
unregister_netdev(net_dev);
- free_netdev(net_dev);
}
}