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)
commit043e3f834530e15e89c58c1b7af59cc646700134
tree14b3c7551844df5cdb030e4100a11ab96632ffcc
parent6f6485463aada1ec6a0f3db6a03eb8e393d6bb55
USB: serial: fix write memory-allocation flag

Fix regression introduced by commit 818f60365a29 ("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