summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Smart <james.smart@emulex.com>2014-05-21 14:05:10 +0200
committerChristoph Hellwig <hch@lst.de>2014-06-02 18:29:52 +0200
commit59c5f61fcaccb04e2728cb84c9689b4ca886fa8e (patch)
treefc0faab41d199ffedafabd59f425d3ff197288aa
parentlpfc: Fix for cleaning up stale ring flag and sp_queue_event entries (diff)
downloadlinux-59c5f61fcaccb04e2728cb84c9689b4ca886fa8e.tar.xz
linux-59c5f61fcaccb04e2728cb84c9689b4ca886fa8e.zip
lpfc: Fix for initializing RRQ bitmap
Fix for initializing RRQ bitmap Signed-off-by: James Smart <james.smart@emulex.com> Reviewed-By: Dick Kennedy <dick.kennedy@emulex.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r--drivers/scsi/lpfc/lpfc_hbadisc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c
index a44d76a7b8e1..d17cde6bfcaf 100644
--- a/drivers/scsi/lpfc/lpfc_hbadisc.c
+++ b/drivers/scsi/lpfc/lpfc_hbadisc.c
@@ -5634,6 +5634,9 @@ lpfc_nlp_init(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
ndlp->active_rrqs_xri_bitmap =
mempool_alloc(vport->phba->active_rrq_pool,
GFP_KERNEL);
+ if (ndlp->active_rrqs_xri_bitmap)
+ memset(ndlp->active_rrqs_xri_bitmap, 0,
+ ndlp->phba->cfg_rrq_xri_bitmap_sz);
}