]> git.karo-electronics.de Git - linux-beck.git/commitdiff
USB: kobil_sct: replace unnecessary atomic allocation
authorJohan Hovold <johan@kernel.org>
Wed, 29 Oct 2014 08:07:32 +0000 (09:07 +0100)
committerJohan Hovold <johan@kernel.org>
Mon, 3 Nov 2014 08:15:15 +0000 (09:15 +0100)
Use GFP_KERNEL instead of GFP_ATOMIC for allocation in open(), which may
sleep.

Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/kobil_sct.c

index 078f9ed419c84fbf1cbbdd41741ba20051a03187..a65042cc31a7ff8cc77267f2f2c3bb0db026627e 100644 (file)
@@ -244,7 +244,7 @@ static int kobil_open(struct tty_struct *tty, struct usb_serial_port *port)
            priv->device_type == KOBIL_ADAPTER_B_PRODUCT_ID ||
            priv->device_type == KOBIL_KAAN_SIM_PRODUCT_ID) {
                /* start reading (Adapter B 'cause PNP string) */
-               result = usb_submit_urb(port->interrupt_in_urb, GFP_ATOMIC);
+               result = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL);
                dev_dbg(dev, "%s - Send read URB returns: %i\n", __func__, result);
        }