]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] be2iscsi: Fix returning Failure when MBX fails with Insufficient buffer error
authorJayamohan Kallickal <jayamohank@gmail.com>
Sat, 6 Apr 2013 03:38:22 +0000 (20:38 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 2 May 2013 15:07:55 +0000 (08:07 -0700)
commit49b2b4773dd513093c2af0a2afdffcb0c31b7b66
tree25e8a2afa808c5ddc762ff7e2b6cd33dc83e8e2e
parent7ccd41c51907b8b1512ac860bb3a84d30d31bf73
[SCSI] be2iscsi: Fix returning Failure when MBX fails with Insufficient buffer error

When MBX command fails with insufficent buffer, check for the
response lenght returned. Return success if response length
is non-zero value which indicates valid data.

Signed-off-by: Minh Tran <minhduc.tran@emulex.com>
Signed-off-by: John Soni Jose <sony.john-n@emulex.com>
Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/be2iscsi/be_cmds.c
drivers/scsi/be2iscsi/be_cmds.h