]> git.karo-electronics.de Git - karo-tx-linux.git/commit
SCSI: qla2xxx: Properly set result field of bsg_job reply structure for success and...
authorArmen Baloyan <armen.baloyan@qlogic.com>
Wed, 21 Nov 2012 07:39:53 +0000 (02:39 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:45:56 +0000 (08:45 -0800)
commit5c8533cb197d1c6c40b4cd36bca559ec9bcadc3c
tree5d71859dac26e92721d201869d8fbcbd4417d73c
parenta376e11af4cbd47b3f939bb71c29f4aed58cec21
SCSI: qla2xxx: Properly set result field of bsg_job reply structure for success and failure.

commit 63ea923a97cb0d78efcbbd229950e101588f0ddb upstream.

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>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/qla2xxx/qla_bsg.c