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

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

diff -u --recursive --new-file v2.3.49/linux/drivers/scsi/sr.c linux/drivers/scsi/sr.c
@@ -666,11 +666,7 @@
 	/* scsi_wait_cmd sets the command length */
 	SRpnt->sr_cmd_len = 0;
 
-	/*
-	 * FIXME(eric) - need to set the data direction here.
-	 */
-	SRpnt->sr_data_direction = SCSI_DATA_UNKNOWN;
-
+	SRpnt->sr_data_direction = cgc->data_direction;
 	scsi_wait_req(SRpnt, (void *) cgc->cmd, (void *) buffer, cgc->buflen,
 		      SR_TIMEOUT, MAX_RETRIES);
 

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