Skip to content

Commit

Permalink
Input: xpad - fix check for succesful usb_buffer_alloc
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kratochvil <honza@jikos.cz>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Jan Kratochvil authored and Dmitry Torokhov committed Jul 10, 2007
1 parent 5ec1f7f commit 2e8335a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/joystick/xpad.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2e8335a

Please sign in to comment.