patch-2.3.1 linux/drivers/scsi/sr.c

Next file: linux/drivers/scsi/sr_ioctl.c
Previous file: linux/drivers/scsi/sg.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.0/linux/drivers/scsi/sr.c linux/drivers/scsi/sr.c
@@ -895,7 +895,7 @@
 
 	/* Do the command and wait.. */
 	{
-	    struct semaphore sem = MUTEX_LOCKED;
+	    DECLARE_MUTEX_LOCKED(sem);
 	    SCpnt->request.sem = &sem;
 	    spin_lock_irqsave(&io_request_lock, flags);
 	    scsi_do_cmd (SCpnt,

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