diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_bsg.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_bsg.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/scsi/lpfc/lpfc_bsg.c b/drivers/scsi/lpfc/lpfc_bsg.c index d236448b05b9..a58bffb3f68f 100644 --- a/drivers/scsi/lpfc/lpfc_bsg.c +++ b/drivers/scsi/lpfc/lpfc_bsg.c | |||
@@ -2827,8 +2827,10 @@ diag_cmd_data_alloc(struct lpfc_hba *phba, | |||
2827 | size -= cnt; | 2827 | size -= cnt; |
2828 | } | 2828 | } |
2829 | 2829 | ||
2830 | mlist->flag = i; | 2830 | if (mlist) { |
2831 | return mlist; | 2831 | mlist->flag = i; |
2832 | return mlist; | ||
2833 | } | ||
2832 | out: | 2834 | out: |
2833 | diag_cmd_data_free(phba, mlist); | 2835 | diag_cmd_data_free(phba, mlist); |
2834 | return NULL; | 2836 | return NULL; |
@@ -4592,7 +4594,7 @@ sli_cfg_ext_error: | |||
4592 | * being reset) and com-plete the job, otherwise issue the mailbox command and | 4594 | * being reset) and com-plete the job, otherwise issue the mailbox command and |
4593 | * let our completion handler finish the command. | 4595 | * let our completion handler finish the command. |
4594 | **/ | 4596 | **/ |
4595 | static uint32_t | 4597 | static int |
4596 | lpfc_bsg_issue_mbox(struct lpfc_hba *phba, struct fc_bsg_job *job, | 4598 | lpfc_bsg_issue_mbox(struct lpfc_hba *phba, struct fc_bsg_job *job, |
4597 | struct lpfc_vport *vport) | 4599 | struct lpfc_vport *vport) |
4598 | { | 4600 | { |