From: Vaios Papadimitriou Date: Tue, 28 Aug 2012 22:56:11 +0000 (-0700) Subject: scsi/lpfc: Fix bug with message 2520 appearing in the messages file X-Git-Tag: v2.6.39-400.9.0~314^2~18 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7595478228679c586aa35a87113c13c4bc89d30d;p=users%2Fjedix%2Flinux-maple.git scsi/lpfc: Fix bug with message 2520 appearing in the messages file commit id: http://marc.info/?l=linux-scsi&m=134401194806312 Signed-off-by: Jerry Snitselaar --- diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 0b930ae0dbb9..a9f75e7d816f 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c @@ -7583,10 +7583,11 @@ lpfc_sli4_send_nop_mbox_cmds(struct lpfc_hba *phba, uint32_t cnt) /* Set up NOP SLI4_CONFIG mailbox-ioctl command */ length = (sizeof(struct lpfc_mbx_nop) - sizeof(struct lpfc_sli4_cfg_mhdr)); - lpfc_sli4_config(phba, mboxq, LPFC_MBOX_SUBSYSTEM_COMMON, - LPFC_MBOX_OPCODE_NOP, length, LPFC_SLI4_MBX_EMBED); for (cmdsent = 0; cmdsent < cnt; cmdsent++) { + lpfc_sli4_config(phba, mboxq, LPFC_MBOX_SUBSYSTEM_COMMON, + LPFC_MBOX_OPCODE_NOP, length, + LPFC_SLI4_MBX_EMBED); if (!phba->sli4_hba.intr_enable) rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); else {