staging: vt6656: [BUG] iwctl_siwencodeext return if device not open
authorMalcolm Priestley <tvboxspy@gmail.com>
Mon, 23 Sep 2013 19:30:42 +0000 (20:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2013 14:13:10 +0000 (07:13 -0700)
commit54cff964637d840e7860afa49a369c84c8cfbf61
treead0615d3d9e267e236d4bd9fb0e1b4b44255920a
parentd66aed99301eb9dd6a6e71f73081057480369ab4
staging: vt6656: [BUG] iwctl_siwencodeext return if device not open

commit 5e8c3d3e41b0bf241e830a1ee0752405adecc050 upstream.

Don't allow entry to iwctl_siwencodeext if device not open.

This fixes a race condition where wpa supplicant/network manager
enters the function when the device is already closed.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/iwctl.c