diff options
| author | Johan Hovold <johan@kernel.org> | 2026-06-23 17:21:46 +0200 |
|---|---|---|
| committer | Johan Hovold <johan@kernel.org> | 2026-07-13 11:24:55 +0200 |
| commit | c41d491929bbb2e3fcd9f0233e563b1f6e1120a7 (patch) | |
| tree | 70863b73c9e3262b4cae39ef334e765bcf811603 /drivers/usb/serial | |
| parent | c3c1852355c8ee171dcc71f71a328d672a604179 (diff) | |
| download | linux-next-c41d491929bbb2e3fcd9f0233e563b1f6e1120a7.tar.gz linux-next-c41d491929bbb2e3fcd9f0233e563b1f6e1120a7.zip | |
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>
Diffstat (limited to 'drivers/usb/serial')
| -rw-r--r-- | drivers/usb/serial/metro-usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/metro-usb.c b/drivers/usb/serial/metro-usb.c index 35473544f1c8..f42ad5dec35e 100644 --- a/drivers/usb/serial/metro-usb.c +++ b/drivers/usb/serial/metro-usb.c @@ -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", |
