]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[SCSI] qla2xxx: Properly set result field of bsg_job reply structure for success...
authorArmen Baloyan <armen.baloyan@qlogic.com>
Wed, 21 Nov 2012 07:39:53 +0000 (02:39 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 30 Nov 2012 09:34:44 +0000 (09:34 +0000)
commit63ea923a97cb0d78efcbbd229950e101588f0ddb
tree604d6893f8a91b7ff228f2d56d6d2c8a9a6b5025
parent691e3d3175daff73d9b1771bf79ab032fdcec5a5
[SCSI] qla2xxx: Properly set result field of bsg_job reply structure for success and failure.

FC transport on receiving bsg_job submission failure, calls bsg_job->job_done()
and sets the bsg_job->reply->result the returned value. In contrast, when the
success code (0) is returned fc transport doesn't call bsg_job->job_done() and
doesn't populate bsg_job->reply->result.

Signed-off-by: Steve Hodgson <steve@purestorage.com>
Signed-off-by: Armen Baloyan <armen.baloyan@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Cc: <stable@vger.kernel.org> #3.7
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla2xxx/qla_bsg.c