From 7f3a23738b01aa405c99bcf8f2be48ddf1956da4 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 16 Nov 2014 19:07:13 +0100 Subject: headers: fix problem when unloading mac80211 on Ubuntu 14.04 When unloading mac80211 on the default kernel which is currently shipped in Ubuntu 14.04 this commit causes a kernel error message. Now we check if the list was deleted before and only do so if it was not done before. Ubuntu probably backported this patch in their kernel. commit 97666f936e0656a1b28c40cc33981a8db65e1a11 Author: Hauke Mehrtens Date: Sun Nov 16 14:23:24 2014 +0100 headers: delete the list in unregister_netdevice_many() Signed-off-by: Hauke Mehrtens --- backport/backport-include/linux/netdevice.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'backport/backport-include/linux/netdevice.h') diff --git a/backport/backport-include/linux/netdevice.h b/backport/backport-include/linux/netdevice.h index 4eec6c03..b4532808 100644 --- a/backport/backport-include/linux/netdevice.h +++ b/backport/backport-include/linux/netdevice.h @@ -194,7 +194,8 @@ static inline void backport_unregister_netdevice_many(struct list_head *head) { unregister_netdevice_many(head); - list_del(head); + if (!(head->next == LIST_POISON1 && head->prev == LIST_POISON2)) + list_del(head); } #define unregister_netdevice_many LINUX_BACKPORT(unregister_netdevice_many) #endif -- cgit v1.2.3