Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=2e8335a629e48a753642772a5fe758c12d2e48bf
Commit:     2e8335a629e48a753642772a5fe758c12d2e48bf
Parent:     5ec1f7f3e4a4896062dc6a64d38036588733bc23
Author:     Jan Kratochvil <[EMAIL PROTECTED]>
AuthorDate: Thu Jun 14 23:33:13 2007 -0400
Committer:  Dmitry Torokhov <[EMAIL PROTECTED]>
CommitDate: Tue Jul 10 00:35:18 2007 -0400

    Input: xpad - fix check for succesful usb_buffer_alloc
    
    Signed-off-by: Jan Kratochvil <[EMAIL PROTECTED]>
    Signed-off-by: Dmitry Torokhov <[EMAIL PROTECTED]>
---
 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 0c04a26..067ed8d 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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to