]> git.baikalelectronics.ru Git - kernel.git/commitdiff
media: imon: avoid needless atomic allocations in resume
authorOliver Neukum <oneukum@suse.com>
Thu, 28 Apr 2022 13:34:53 +0000 (15:34 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 13 May 2022 09:02:22 +0000 (11:02 +0200)
GFP_NOIO is fine here.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/rc/imon.c

index 54da6f60079baa3e178a3ae10a165c687487c309..761b7fa573782aa3c5ced860ee51b47f73ccca21 100644 (file)
@@ -2578,7 +2578,7 @@ static int imon_resume(struct usb_interface *intf)
                        usb_rx_callback_intf0, ictx,
                        ictx->rx_endpoint_intf0->bInterval);
 
-               rc = usb_submit_urb(ictx->rx_urb_intf0, GFP_ATOMIC);
+               rc = usb_submit_urb(ictx->rx_urb_intf0, GFP_NOIO);
 
        } else {
                usb_fill_int_urb(ictx->rx_urb_intf1, ictx->usbdev_intf1,
@@ -2588,7 +2588,7 @@ static int imon_resume(struct usb_interface *intf)
                        usb_rx_callback_intf1, ictx,
                        ictx->rx_endpoint_intf1->bInterval);
 
-               rc = usb_submit_urb(ictx->rx_urb_intf1, GFP_ATOMIC);
+               rc = usb_submit_urb(ictx->rx_urb_intf1, GFP_NOIO);
        }
 
        return rc;