patch-2.3.34 linux/drivers/scsi/sr_ioctl.c

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

diff -u --recursive --new-file v2.3.33/linux/drivers/scsi/sr_ioctl.c linux/drivers/scsi/sr_ioctl.c
@@ -59,7 +59,7 @@
 	char *bounce_buffer;
 
 	SDev = scsi_CDs[target].device;
-	SCpnt = scsi_allocate_device(scsi_CDs[target].device, 1);
+	SCpnt = scsi_allocate_device(scsi_CDs[target].device, 1, FALSE);
 
 	/* use ISA DMA buffer if necessary */
 	SCpnt->request.buffer = buffer;
@@ -142,7 +142,6 @@
 	}
 	result = SCpnt->result;
 	/* Wake up a process waiting for device */
-	wake_up(&SCpnt->device->device_wait);
 	scsi_release_command(SCpnt);
 	SCpnt = NULL;
 	return err;

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