[SCSI] 3ware 9000: handle use_sg != 0 for emulated commands
authoradam radford <aradford@gmail.com>
Fri, 9 Sep 2005 22:55:13 +0000 (15:55 -0700)
committerJames Bottomley <jejb@mulgrave.(none)>
Fri, 9 Sep 2005 23:11:16 +0000 (18:11 -0500)
commitd327d082325a0d4afb3748ef8b59e734e57cfe4c
tree0d47f42e18476f27a730703697b70d8194bfbb57
parentc7ebbbce366c02e5657ac6b6059933fe0353b175
[SCSI] 3ware 9000: handle use_sg != 0 for emulated commands

The attached patch updates the driver for the 3ware 9000 series to do
the following:

- Correctly handle single sgl's with use_sg = 1.

This is needed with the latest scsi-block-2.6 merge otherwise the 3w-9xxx
driver will not work.  I tested the patch James sent a few weeks back to fix
this, and it had a bug where the request_buffer was accessed in
twa_scsiop_execute_scsi_complete() when it was invalid.  This is a corrected
variation of that patch.

Signed-off-by: Adam Radford <linuxraid@amcc.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/3w-9xxx.c