[SCSI] 3w-9xxx fix bug in sgl loading
authoradam radford <aradford@gmail.com>
Thu, 10 Dec 2009 19:53:31 +0000 (11:53 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Sat, 12 Dec 2009 22:45:23 +0000 (16:45 -0600)
commit53ca353594a254e6bd45ccf2d405aa31bcbb7091
tree1dfce24a2b996281aa1d30912de0c9345a3a9519
parent55a66d3c1e57f7e3e554d6ec8011e840f3802f20
[SCSI] 3w-9xxx fix bug in sgl loading

This small patch fixes a bug in the 3w-9xxx driver where it would load
an invalid sgl address in the ioctl path even if request length was zero.

Signed-off-by: Adam Radford <aradford@gmail.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/3w-9xxx.c