]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging: vt6656: Fix URB submitted while active warning.
authorMalcolm Priestley <tvboxspy@gmail.com>
Wed, 30 Jan 2013 20:07:29 +0000 (20:07 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Feb 2013 13:38:37 +0000 (05:38 -0800)
commite0079704759fc8a99eeb32e0fa20bca85d821947
treea9b437481f992e65673159be20aa8267ac7916d1
parentf928cb6cd36f22b1b4ee37553bbb0d33acfc82df
staging: vt6656: Fix URB submitted while active warning.

commit ae5943de8c8c4438cbac5cda599ff0b88c224468 upstream.

This error happens because PIPEnsControlOut and PIPEnsControlIn unlock the
spin lock for delay, letting in another thread.

The patch moves the current MP_SET_FLAG to before filling
of sUsbCtlRequest for pControlURB and clears it in event of failing.

Any thread calling either function while fMP_CONTROL_READS or fMP_CONTROL_WRITES
flags set will return STATUS_FAILURE.

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