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

Commit dd38d688 authored by Dmitry Torokhov's avatar Dmitry Torokhov
Browse files

Input: xbox - do not use GFP_KERNEL under spinlock



xbox_play_effect() is called while holding dev->event_lock with
interrupts disabled and thus may not use GFP_KERNEL when submitting
urbs.

Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent e4e6efd2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -571,7 +571,7 @@ static int xpad_play_effect(struct input_dev *dev, void *data,
		xpad->odata[6] = 0x00;
		xpad->odata[7] = 0x00;
		xpad->irq_out->transfer_buffer_length = 8;
		usb_submit_urb(xpad->irq_out, GFP_KERNEL);
		usb_submit_urb(xpad->irq_out, GFP_ATOMIC);
	}

	return 0;