diff options
author | Jan Kratochvil <honza@jikos.cz> | 2007-06-15 05:33:13 +0200 |
---|---|---|
committer | Dmitry Torokhov <dtor@insightbb.com> | 2007-07-10 06:35:18 +0200 |
commit | 2e8335a629e48a753642772a5fe758c12d2e48bf (patch) | |
tree | 362eb86a18d7d727d3ef681ea3e433b3e3017981 /drivers/input/joystick | |
parent | Input: grip-mp - use ARRAY_SIZE (diff) | |
download | linux-2e8335a629e48a753642772a5fe758c12d2e48bf.tar.xz linux-2e8335a629e48a753642772a5fe758c12d2e48bf.zip |
Input: xpad - fix check for succesful usb_buffer_alloc
Signed-off-by: Jan Kratochvil <honza@jikos.cz>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/joystick')
-rw-r--r-- | drivers/input/joystick/xpad.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index 0c04a26b8122..067ed8d1f8a7 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -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); |