This is a note to let you know that I've just added the patch titled USB: opticon: fix non-atomic allocation in write path to the 3.10-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: usb-opticon-fix-non-atomic-allocation-in-write-path.patch and it can be found in the queue-3.10 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From e681286de221af78fc85db9222b6a203148c005a Mon Sep 17 00:00:00 2001 From: Johan Hovold <johan@xxxxxxxxxx> Date: Wed, 29 Oct 2014 09:07:31 +0100 Subject: USB: opticon: fix non-atomic allocation in write path From: Johan Hovold <johan@xxxxxxxxxx> commit e681286de221af78fc85db9222b6a203148c005a upstream. Write may be called from interrupt context so make sure to use GFP_ATOMIC for all allocations in write. Fixes: 0d930e51cfe6 ("USB: opticon: Add Opticon OPN2001 write support") Signed-off-by: Johan Hovold <johan@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/usb/serial/opticon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/usb/serial/opticon.c +++ b/drivers/usb/serial/opticon.c @@ -219,7 +219,7 @@ static int opticon_write(struct tty_stru /* The conncected devices do not have a bulk write endpoint, * to transmit data to de barcode device the control endpoint is used */ - dr = kmalloc(sizeof(struct usb_ctrlrequest), GFP_NOIO); + dr = kmalloc(sizeof(struct usb_ctrlrequest), GFP_ATOMIC); if (!dr) { dev_err(&port->dev, "out of memory\n"); count = -ENOMEM; Patches currently in stable-queue which might be from johan@xxxxxxxxxx are queue-3.10/usb-option-add-haier-ce81b-cdma-modem.patch queue-3.10/usb-opticon-fix-non-atomic-allocation-in-write-path.patch queue-3.10/usb-cdc-acm-add-device-id-for-gw-instek-afg-2225.patch queue-3.10/usb-option-add-support-for-telit-le910.patch queue-3.10/usb-serial-ftdi_sio-add-awinda-station-and-dongle-products.patch queue-3.10/usb-serial-cp210x-add-silicon-labs-358x-vid-and-pid.patch queue-3.10/usb-cdc-acm-only-raise-dtr-on-transitions-from-b0.patch queue-3.10/usb-serial-ftdi_sio-add-bricked-ftdi-device-pid.patch -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html