Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=bcd4e22540309f2f135f278cffe134c63dbcaee5
Commit:     bcd4e22540309f2f135f278cffe134c63dbcaee5
Parent:     bdd0d7571ac83190ec0caafb86d0d35ba2616fd2
Author:     FUJITA Tomonori <[EMAIL PROTECTED]>
AuthorDate: Fri May 11 19:10:45 2007 +0900
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Wed May 16 12:45:17 2007 -0400

    [SCSI] tgt: fix a rdma indirect transfer error bug
    
    This sets sg_dma_len to a proper value.
    
    Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]>
    Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
---
 drivers/scsi/libsrp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/scsi/libsrp.c b/drivers/scsi/libsrp.c
index 5631c19..732446e 100644
--- a/drivers/scsi/libsrp.c
+++ b/drivers/scsi/libsrp.c
@@ -254,6 +254,7 @@ static int srp_indirect_data(struct scsi_cmnd *sc, struct 
srp_cmd *cmd,
 
                sg_init_one(&dummy, md, id->table_desc.len);
                sg_dma_address(&dummy) = token;
+               sg_dma_len(&dummy) = id->table_desc.len;
                err = rdma_io(sc, &dummy, 1, &id->table_desc, 1, DMA_TO_DEVICE,
                              id->table_desc.len);
                if (err) {
-
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