diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2014-11-16 19:07:13 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2014-11-16 19:07:13 +0100 |
commit | 7f3a23738b01aa405c99bcf8f2be48ddf1956da4 (patch) | |
tree | d8b3f9448dfe120c9dec79059fcf8c8e3c77c003 | |
parent | 78b1b80ba1e0d7f52be5e8f147b80a942bdf8994 (diff) |
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 <hauke@hauke-m.de>
Date: Sun Nov 16 14:23:24 2014 +0100
headers: delete the list in unregister_netdevice_many()
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r-- | backport/backport-include/linux/netdevice.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 |