patch-2.1.131 linux/drivers/char/joystick/joy-logitech.c

Next file: linux/drivers/char/joystick/joy-sidewinder.c
Previous file: linux/drivers/char/joystick/joy-lightning.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.130/linux/drivers/char/joystick/joy-logitech.c linux/drivers/char/joystick/joy-logitech.c
@@ -361,7 +361,7 @@
 {
 	struct js_lt_info *info;
 
-	while (js_lt_port) {
+	while (js_lt_port != NULL) {
 		js_unregister_device(js_lt_port->devs[0]);
 		info = js_lt_port->info;
 		release_region(info->io, 1);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov