mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 00:34:20 +08:00
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>
This commit is contained in:
parent
5f9f975b79
commit
811c370780
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user