[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)
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>

No differences found