aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_transport_fc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/scsi_transport_fc.c')
-rw-r--r--drivers/scsi/scsi_transport_fc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_transport_fc.c b/drivers/scsi/scsi_transport_fc.c
index b98885de6876..c6f70dae9b2e 100644
--- a/drivers/scsi/scsi_transport_fc.c
+++ b/drivers/scsi/scsi_transport_fc.c
@@ -3586,6 +3586,7 @@ enum fc_dispatch_result {
3586 3586
3587/** 3587/**
3588 * fc_bsg_host_dispatch - process fc host bsg requests and dispatch to LLDD 3588 * fc_bsg_host_dispatch - process fc host bsg requests and dispatch to LLDD
3589 * @q: fc host request queue
3589 * @shost: scsi host rport attached to 3590 * @shost: scsi host rport attached to
3590 * @job: bsg job to be processed 3591 * @job: bsg job to be processed
3591 */ 3592 */
@@ -3655,6 +3656,7 @@ fc_bsg_host_dispatch(struct request_queue *q, struct Scsi_Host *shost,
3655fail_host_msg: 3656fail_host_msg:
3656 /* return the errno failure code as the only status */ 3657 /* return the errno failure code as the only status */
3657 BUG_ON(job->reply_len < sizeof(uint32_t)); 3658 BUG_ON(job->reply_len < sizeof(uint32_t));
3659 job->reply->reply_payload_rcv_len = 0;
3658 job->reply->result = ret; 3660 job->reply->result = ret;
3659 job->reply_len = sizeof(uint32_t); 3661 job->reply_len = sizeof(uint32_t);
3660 fc_bsg_jobdone(job); 3662 fc_bsg_jobdone(job);
@@ -3693,6 +3695,7 @@ fc_bsg_goose_queue(struct fc_rport *rport)
3693 3695
3694/** 3696/**
3695 * fc_bsg_rport_dispatch - process rport bsg requests and dispatch to LLDD 3697 * fc_bsg_rport_dispatch - process rport bsg requests and dispatch to LLDD
3698 * @q: rport request queue
3696 * @shost: scsi host rport attached to 3699 * @shost: scsi host rport attached to
3697 * @rport: rport request destined to 3700 * @rport: rport request destined to
3698 * @job: bsg job to be processed 3701 * @job: bsg job to be processed
@@ -3739,6 +3742,7 @@ check_bidi:
3739fail_rport_msg: 3742fail_rport_msg:
3740 /* return the errno failure code as the only status */ 3743 /* return the errno failure code as the only status */
3741 BUG_ON(job->reply_len < sizeof(uint32_t)); 3744 BUG_ON(job->reply_len < sizeof(uint32_t));
3745 job->reply->reply_payload_rcv_len = 0;
3742 job->reply->result = ret; 3746 job->reply->result = ret;
3743 job->reply_len = sizeof(uint32_t); 3747 job->reply_len = sizeof(uint32_t);
3744 fc_bsg_jobdone(job); 3748 fc_bsg_jobdone(job);
@@ -3795,6 +3799,7 @@ fc_bsg_request_handler(struct request_queue *q, struct Scsi_Host *shost,
3795 /* check if we have the msgcode value at least */ 3799 /* check if we have the msgcode value at least */
3796 if (job->request_len < sizeof(uint32_t)) { 3800 if (job->request_len < sizeof(uint32_t)) {
3797 BUG_ON(job->reply_len < sizeof(uint32_t)); 3801 BUG_ON(job->reply_len < sizeof(uint32_t));
3802 job->reply->reply_payload_rcv_len = 0;
3798 job->reply->result = -ENOMSG; 3803 job->reply->result = -ENOMSG;
3799 job->reply_len = sizeof(uint32_t); 3804 job->reply_len = sizeof(uint32_t);
3800 fc_bsg_jobdone(job); 3805 fc_bsg_jobdone(job);