Input: iforce - use GFP_KERNEL in iforce_get_id_packet()
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 4 Jul 2018 15:01:06 +0000 (15:01 +0000)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 4 Jul 2018 16:08:59 +0000 (16:08 +0000)
iforce_get_id_packet() invokes wait_event_interruptible_timeout() which
means it has to be in non-atomic context at that point, thus we can use
GFP_KERNEL instead of GFP_ATOMIC.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/iforce/iforce-packets.c

index 08f98f2eaf888e93596e046b071e577afe98df04..fedaaea5c16d31e7de690bfbe4b4645213b63a7c 100644 (file)
@@ -255,7 +255,7 @@ int iforce_get_id_packet(struct iforce *iforce, char *packet)
                iforce->cr.bRequest = packet[0];
                iforce->ctrl->dev = iforce->usbdev;
 
-               status = usb_submit_urb(iforce->ctrl, GFP_ATOMIC);
+               status = usb_submit_urb(iforce->ctrl, GFP_KERNEL);
                if (status) {
                        dev_err(&iforce->intf->dev,
                                "usb_submit_urb failed %d\n", status);