cfg80211: check wdev->netdev in connection work
authorJohannes Berg <johannes.berg@intel.com>
Thu, 23 May 2013 16:10:21 +0000 (18:10 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 23 May 2013 16:12:38 +0000 (18:12 +0200)
commitc815797663b72e3ac1736f1886538152bc48e4af
tree023320c601a49b09bdd3aa6ac308a1f8416628b4
parent6211dd12da609bc6893b9c3182630b494737ec4b
cfg80211: check wdev->netdev in connection work

If a P2P-Device is present and another virtual interface triggers
the connection work, the system crash because it tries to check
if the P2P-Device's netdev (which doesn't exist) is up. Skip any
wdevs that have no netdev to fix this.

Cc: stable@vger.kernel.org
Reported-by: YanBo <dreamfly281@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/sme.c