wireless: check for dangling wdev->current_bss pointer
authorBen Greear <greearb@candelatech.com>
Wed, 19 Jun 2013 21:06:26 +0000 (14:06 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 24 Jun 2013 13:55:36 +0000 (15:55 +0200)
commitf9bef3df52fe61067e4c1c6cfb2037cb6b259a6a
tree80d8f1dfd41630b161095f301d4f158838dc73c0
parent0e3a39b5620bc84f25ffb0592b05b0350e8b0520
wireless: check for dangling wdev->current_bss pointer

If it *is* still set when the netdev is being deleted,
then we are about to leak a pointer.  Warn and clean up
in that case.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/core.c