From: Malcolm Priestley Date: Sun, 22 Sep 2013 18:48:54 +0000 (+0100) Subject: staging: vt6656: [BUG] main_usb.c oops on device_close move flag earlier. X-Git-Tag: v3.12-rc3~3^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3eb270fab7734427dd8171a93e4946fe28674bc;p=pandora-kernel.git staging: vt6656: [BUG] main_usb.c oops on device_close move flag earlier. The vt6656 is prone to resetting on the usb bus. It seems there is a race condition and wpa supplicant is trying to open the device via iw_handlers before its actually closed at a stage that the buffers are being removed. The device is longer considered open when the buffers are being removed. So move ~DEVICE_FLAGS_OPENED flag to before freeing the device buffers. Signed-off-by: Malcolm Priestley Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed