patch-2.4.26 linux-2.4.26/drivers/usb/w9968cf.c

Next file: linux-2.4.26/drivers/video/amifb.c
Previous file: linux-2.4.26/drivers/usb/usbnet.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.25/drivers/usb/w9968cf.c linux-2.4.26/drivers/usb/w9968cf.c
@@ -2943,7 +2943,7 @@
 		return -ENODEV;
 	}
 
-	if (cam->users) {
+	while (cam->users) {
 		DBG(2, "%s (/dev/video%d) has been already occupied by '%s'.",
 		    symbolic(camlist, cam->id),cam->v4ldev->minor,cam->command)
 		if ((filp->f_flags & O_NONBLOCK)||(filp->f_flags & O_NDELAY)) {
@@ -3632,7 +3632,7 @@
 		if (copy_from_user(&tuner, arg, sizeof(tuner)))
 			return -EFAULT;
 
-		if (tuner.tuner != 0);
+		if (tuner.tuner != 0)
 			return -EINVAL;
 
 		strcpy(tuner.name, "no_tuner");

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)