Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 811c3707 authored by Johan Hovold's avatar Johan Hovold
Browse files

USB: kobil_sct: replace unnecessary atomic allocation



Use GFP_KERNEL instead of GFP_ATOMIC for allocation in open(), which may
sleep.

Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent 5f9f975b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
	}