From: Johannes Berg Date: Thu, 30 Jul 2009 12:04:01 +0000 (+0200) Subject: cfg80211: fix NETDEV_UNREGISTER notifier X-Git-Tag: v2.6.32-rc1~703^2~459^2~68 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e40cbdac0629402a4cb0c3bca0cc19ab7a00e00d;p=pandora-kernel.git cfg80211: fix NETDEV_UNREGISTER notifier It's possible to get the NETDEV_UNREGISTER callback multiple times (see net/core/dev.c:netdev_wait_allrefs) and this will completely mess up our cleanup code. To avoid that, clean up only when the interface is still on the wiphy interface list from which it's removed on the first NETDEV_UNREGISTER call. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- Reading git-diff-tree failed