]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SCSI] u14-34f: fix data direction bug
authorRoel Kluin <12o3l@tiscali.nl>
Wed, 6 Feb 2008 18:21:07 +0000 (19:21 +0100)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 8 Feb 2008 00:02:44 +0000 (18:02 -0600)
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>
drivers/scsi/u14-34f.c

index 662c00451be443556e32f1bbd930a4c6dcd811bc..58d7eee4fe81133779d066b9a02f119273b027d8 100644 (file)
@@ -1216,7 +1216,7 @@ static void scsi_to_dev_dir(unsigned int i, unsigned int j) {
       cpp->xdir = DTD_IN;
       return;
       }
-   else if (SCpnt->sc_data_direction == DMA_FROM_DEVICE) {
+   else if (SCpnt->sc_data_direction == DMA_TO_DEVICE) {
       cpp->xdir = DTD_OUT;
       return;
       }