mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
USB: serial: metro-usb: replace unnecessary atomic allocation
The unthrottle callback is allowed to sleep so pass the correct GFP flag to usb_submit_urb() to avoid unnecessary atomic allocations. Signed-off-by: Johan Hovold <johan@kernel.org>
This commit is contained in:
parent
c3c1852355
commit
c41d491929
|
|
@ -329,7 +329,7 @@ static void metrousb_unthrottle(struct tty_struct *tty)
|
|||
spin_unlock_irqrestore(&metro_priv->lock, flags);
|
||||
|
||||
/* Submit the urb to read from the port. */
|
||||
result = usb_submit_urb(port->interrupt_in_urb, GFP_ATOMIC);
|
||||
result = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL);
|
||||
if (result)
|
||||
dev_err(&port->dev,
|
||||
"failed submitting interrupt in urb error code=%d\n",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user