aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_mem.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_mem.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_mem.c b/drivers/scsi/lpfc/lpfc_mem.c
index 6dc5ab8d6716..27448c98c07a 100644
--- a/drivers/scsi/lpfc/lpfc_mem.c
+++ b/drivers/scsi/lpfc/lpfc_mem.c
@@ -265,6 +265,9 @@ lpfc_in_buf_free(struct lpfc_hba *phba, struct lpfc_dmabuf *mp)
265{ 265{
266 struct hbq_dmabuf *hbq_entry; 266 struct hbq_dmabuf *hbq_entry;
267 267
268 if (!mp)
269 return;
270
268 if (phba->sli3_options & LPFC_SLI3_HBQ_ENABLED) { 271 if (phba->sli3_options & LPFC_SLI3_HBQ_ENABLED) {
269 hbq_entry = container_of(mp, struct hbq_dmabuf, dbuf); 272 hbq_entry = container_of(mp, struct hbq_dmabuf, dbuf);
270 if (hbq_entry->tag == -1) { 273 if (hbq_entry->tag == -1) {
@@ -279,4 +282,3 @@ lpfc_in_buf_free(struct lpfc_hba *phba, struct lpfc_dmabuf *mp)
279 } 282 }
280 return; 283 return;
281} 284}
282