DORMANTno replies

[PATCH 1/4] xpad.c check for succesful initialization fixed

From: Jan Kratochvil <hidden>
Date: 2007-06-03 13:56:08
Subsystem: input (keyboard, mouse, joystick, touchscreen) drivers, the rest · Maintainers: Dmitry Torokhov, Linus Torvalds

Fixed check for succesful usb_buffer_alloc

Signed-off-by: Jan Kratochvil <redacted>
---
  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 664c765..56d5e3e 100644
--- a/drivers/input/joystick/xpad.c
+++ b/drivers/input/joystick/xpad.c
@@ -408,7 +408,7 @@ static int xpad_init_ff(struct usb_inter

  	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);
-- 
1.4.3.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help