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

Commit 2e8335a6 authored by Jan Kratochvil's avatar Jan Kratochvil Committed by Dmitry Torokhov
Browse files

Input: xpad - fix check for succesful usb_buffer_alloc



Signed-off-by: default avatarJan Kratochvil <honza@jikos.cz>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 5ec1f7f3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -407,7 +407,7 @@ static int xpad_init_ff(struct usb_interface *intf, struct usb_xpad *xpad)

	xpad->odata = usb_buffer_alloc(xpad->udev, XPAD_PKT_LEN,
				       GFP_ATOMIC, &xpad->odata_dma );
	if (!xpad->idata)
	if (!xpad->odata)
		goto fail1;

	xpad->irq_out = usb_alloc_urb(0, GFP_KERNEL);