summaryrefslogtreecommitdiff
path: root/drivers/usb/serial/kobil_sct.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2014-10-29 11:07:32 +0300
committerJohan Hovold <johan@kernel.org>2014-11-03 11:15:15 +0300
commit811c37078042980b5b9ed6845303a3cc9e6d48e3 (patch)
tree216dde0b007b5bd63e2d153ffd8dfe84786df84c /drivers/usb/serial/kobil_sct.c
parent5f9f975b7984ffec0a25f55e58246aebf68794f4 (diff)
downloadlinux-811c37078042980b5b9ed6845303a3cc9e6d48e3.tar.xz
USB: kobil_sct: replace unnecessary atomic allocation
Use GFP_KERNEL instead of GFP_ATOMIC for allocation in open(), which may sleep. Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/kobil_sct.c')
-rw-r--r--drivers/usb/serial/kobil_sct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/kobil_sct.c b/drivers/usb/serial/kobil_sct.c
index 078f9ed419c8..a65042cc31a7 100644
--- a/drivers/usb/serial/kobil_sct.c
+++ b/drivers/usb/serial/kobil_sct.c
@@ -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);
}