diff options
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_attr.c | 2 | ||||
-rw-r--r-- | drivers/scsi/lpfc/lpfc_hbadisc.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c index 2558156f064d..b62a72dfab29 100644 --- a/drivers/scsi/lpfc/lpfc_attr.c +++ b/drivers/scsi/lpfc/lpfc_attr.c | |||
@@ -856,7 +856,7 @@ sysfs_mbox_write(struct kobject *kobj, char *buf, loff_t off, size_t count) | |||
856 | mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); | 856 | mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); |
857 | if (!mbox) | 857 | if (!mbox) |
858 | return -ENOMEM; | 858 | return -ENOMEM; |
859 | 859 | memset(mbox, 0, sizeof (LPFC_MBOXQ_t)); | |
860 | } | 860 | } |
861 | 861 | ||
862 | spin_lock_irq(host->host_lock); | 862 | spin_lock_irq(host->host_lock); |
diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c index f54089fe4732..6721e679df62 100644 --- a/drivers/scsi/lpfc/lpfc_hbadisc.c +++ b/drivers/scsi/lpfc/lpfc_hbadisc.c | |||
@@ -1760,6 +1760,7 @@ lpfc_findnode_did(struct lpfc_hba * phba, uint32_t order, uint32_t did) | |||
1760 | phba->brd_no, | 1760 | phba->brd_no, |
1761 | ndlp, ndlp->nlp_DID, | 1761 | ndlp, ndlp->nlp_DID, |
1762 | ndlp->nlp_flag, data1); | 1762 | ndlp->nlp_flag, data1); |
1763 | spin_unlock_irq(phba->host->host_lock); | ||
1763 | return ndlp; | 1764 | return ndlp; |
1764 | } | 1765 | } |
1765 | } | 1766 | } |
@@ -1805,6 +1806,7 @@ lpfc_findnode_did(struct lpfc_hba * phba, uint32_t order, uint32_t did) | |||
1805 | phba->brd_no, | 1806 | phba->brd_no, |
1806 | ndlp, ndlp->nlp_DID, | 1807 | ndlp, ndlp->nlp_DID, |
1807 | ndlp->nlp_flag, data1); | 1808 | ndlp->nlp_flag, data1); |
1809 | spin_unlock_irq(phba->host->host_lock); | ||
1808 | return ndlp; | 1810 | return ndlp; |
1809 | } | 1811 | } |
1810 | } | 1812 | } |