Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d6a451dd4d7ec805f9a21bb1994ce8ceaecc8fe6
Commit:     d6a451dd4d7ec805f9a21bb1994ce8ceaecc8fe6
Parent:     62e9f5c4671a3026639b01ec84a3063f03bead4c
Author:     Roel Kluin <[EMAIL PROTECTED]>
AuthorDate: Wed Feb 6 19:21:07 2008 +0100
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Thu Feb 7 18:02:44 2008 -0600

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
---
 drivers/scsi/u14-34f.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/u14-34f.c b/drivers/scsi/u14-34f.c
index 662c004..58d7eee 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) {
       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;
       }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to