aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoel Kluin <12o3l@tiscali.nl>2008-02-06 13:21:07 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-02-07 19:02:44 -0500
commitd6a451dd4d7ec805f9a21bb1994ce8ceaecc8fe6 (patch)
tree34920346490ad1eb4c0c1bf38e534e0079c9b51b
parent62e9f5c4671a3026639b01ec84a3063f03bead4c (diff)
[SCSI] u14-34f: fix data direction bug
Direction of data transfer 'DMA_FROM_DEVICE' was tested twice. DTD_OUT means transfer from host to device. This should occur when the direction of data transfer (sc_data_direction) is 'DMA_TO_DEVICE'. Signed-off-by: Roel Kluin <12o3l@tiscali.nl> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
-rw-r--r--drivers/scsi/u14-34f.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/u14-34f.c b/drivers/scsi/u14-34f.c
index 662c00451be4..58d7eee4fe81 100644
--- a/drivers/scsi/u14-34f.c
+++ b/drivers/scsi/u14-34f.c
@@ -1216,7 +1216,7 @@ static void scsi_to_dev_dir(unsigned int i, unsigned int j) {
1216 cpp->xdir = DTD_IN; 1216 cpp->xdir = DTD_IN;
1217 return; 1217 return;
1218 } 1218 }
1219 else if (SCpnt->sc_data_direction == DMA_FROM_DEVICE) { 1219 else if (SCpnt->sc_data_direction == DMA_TO_DEVICE) {
1220 cpp->xdir = DTD_OUT; 1220 cpp->xdir = DTD_OUT;
1221 return; 1221 return;
1222 } 1222 }