]> git.baikalelectronics.ru Git - kernel.git/commit
USB: cypress_m8: fix potential scheduling while atomic
authorJohan Hovold <jhovold@gmail.com>
Wed, 12 Mar 2014 18:09:37 +0000 (19:09 +0100)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 12 Mar 2014 19:44:49 +0000 (12:44 -0700)
commitc1e78604b35e3928664fb278400f66bba18d01f7
tree17621c7eb8d4f2f052f2f43a6177b89eee950844
parent733b0b53f23cdd2ccdc61a00cf2004e8e2d84a47
USB: cypress_m8: fix potential scheduling while atomic

Remove erroneous call to usb_clear_halt which is blocking and cannot be
used in interrupt context.

This code has possibly never been executed as it would cause an oops if
it was. Simply treat a stalled-endpoint error as any other error
condition.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/usb/serial/cypress_m8.c