[SCSI] fix write buffer length in scsi_req_map_sg()
authorMike Christie <michaelc@cs.wisc.edu>
Tue, 13 Mar 2007 17:52:29 +0000 (12:52 -0500)
committerJames Bottomley <jejb@mulgrave.localdomain>
Fri, 12 Oct 2007 18:38:17 +0000 (14:38 -0400)
commitbd441deaf341c524b28fd72831ebf6fef88f1c41
treef75f1170a90b55992a340c64e2ed52ecbfb19bce
parent358147403d1506ee43335c152fa3864d90f5ef6e
[SCSI] fix write buffer length in scsi_req_map_sg()

sg's may have setup a the buffer with a different length than
the transfer length so we should be using the bufflen passed
in as the request's data len.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_lib.c