]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Wed, 25 Sep 2013 23:53:40 +0000 (16:53 -0700)
commit5e8c3d3e41b0bf241e830a1ee0752405adecc050
treedd4170411ce34526ce13dc90546414dfc7feb668
parente3eb270fab7734427dd8171a93e4946fe28674bc
staging: vt6656: [BUG] iwctl_siwencodeext return if device not open

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>
Cc: stable@vger.kernel.org # 3.8+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/iwctl.c