projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ec1f7f
)
Input: xpad - fix check for succesful usb_buffer_alloc
author
Jan Kratochvil
<honza@jikos.cz>
Fri, 15 Jun 2007 03:33:13 +0000
(23:33 -0400)
committer
Dmitry Torokhov
<dtor@insightbb.com>
Tue, 10 Jul 2007 04:35:18 +0000
(
00:35
-0400)
Signed-off-by: Jan Kratochvil <honza@jikos.cz>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/joystick/xpad.c
patch
|
blob
|
history
diff --git
a/drivers/input/joystick/xpad.c
b/drivers/input/joystick/xpad.c
index 0c04a26b8122fec3b09ca513eb992f5e585e3eb7..067ed8d1f8a7228121c6d725ccd321e2a19906ed 100644
(file)
--- 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->
i
data)
+ if (!xpad->
o
data)
goto fail1;
xpad->irq_out = usb_alloc_urb(0, GFP_KERNEL);