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@xxxxxxxxxx> Date: Sun Nov 16 14:23:24 2014 +0100 headers: delete the list in unregister_netdevice_many() Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> --- backport/backport-include/linux/netdevice.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backport/backport-include/linux/netdevice.h b/backport/backport-include/linux/netdevice.h index 4eec6c0..b453280 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 -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe backports" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html