patch-2.4.1 linux/drivers/usb/rio500.c

Next file: linux/drivers/usb/serial/Config.in
Previous file: linux/drivers/sound/ymfpci.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0/linux/drivers/usb/rio500.c linux/drivers/usb/rio500.c
@@ -247,6 +247,7 @@
 	return 0;
 
 err_out:
+	up(&(rio->lock));
 	return retval;
 }
 
@@ -389,7 +390,7 @@
 			     result, partial, this_read);
 			return -EIO;
 		} else {
-			unlock_kernel();
+			up(&(rio->lock));
 			return (0);
 		}
 

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