[SCSI] lpfc 8.1.4 : Two misc fixes
Two misc fixes: - Fix deadlock caused by return with host_lock held in lpfc_findnode_did - Initialize all fields of the allocated mail box structure to zero. Was causing some sysfs mailbox commands to fail immediately after load. Signed-off-by: James Smart <James.Smart@emulex.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
committed by
James Bottomley
parent
9290831f00
commit
fc6c12bcc1
@ -856,7 +856,7 @@ sysfs_mbox_write(struct kobject *kobj, char *buf, loff_t off, size_t count)
|
||||
mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL);
|
||||
if (!mbox)
|
||||
return -ENOMEM;
|
||||
|
||||
memset(mbox, 0, sizeof (LPFC_MBOXQ_t));
|
||||
}
|
||||
|
||||
spin_lock_irq(host->host_lock);
|
||||
|
Reference in New Issue
Block a user