]> git.baikalelectronics.ru Git - kernel.git/commit
USB: serial: fix write memory-allocation flag
authorJohan Hovold <jhovold@gmail.com>
Sat, 9 Nov 2013 11:38:10 +0000 (12:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Nov 2013 16:39:40 +0000 (08:39 -0800)
commit732d60dbc47599d254172366147e22105589ae4b
tree14b3c7551844df5cdb030e4100a11ab96632ffcc
parent09b51f1630e574d31b2c91e17013603fb6d54886
USB: serial: fix write memory-allocation flag

Fix regression introduced by commit 39124d9bad96 ("USB: serial: add
memory flags to usb_serial_generic_write_start"), which incorrectly used
GFP_KERNEL in write(), which must not not sleep.

Reported-by: Dave Jones <davej@fedoraproject.org>
Tested-by: Dave Jones <davej@fedoraproject.org>
Cc: Dave Jones <davej@fedoraproject.org>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/generic.c