From: James Smart Date: Wed, 21 May 2014 12:05:10 +0000 (-0400) Subject: lpfc: Fix for initializing RRQ bitmap X-Git-Tag: firefly_0821_release~176^2~3742^2~4 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=59c5f61fcaccb04e2728cb84c9689b4ca886fa8e;p=firefly-linux-kernel-4.4.55.git lpfc: Fix for initializing RRQ bitmap Fix for initializing RRQ bitmap Signed-off-by: James Smart Reviewed-By: Dick Kennedy Signed-off-by: Christoph Hellwig --- 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); }