diff options
author | James Smart <James.Smart@Emulex.Com> | 2006-03-07 21:04:19 +0100 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-03-12 15:57:13 +0100 |
commit | fc6c12bcc19bdff6b4bcb02f5bd6d9fa59a7e1af (patch) | |
tree | 52a69666dcd29c20975ec2ae218f87f2ab3024f1 /drivers/scsi/lpfc/lpfc_attr.c | |
parent | [SCSI] lpfc 8.1.4 : Introduce lpfc_reset_barrier() function for resets on dua... (diff) | |
download | linux-fc6c12bcc19bdff6b4bcb02f5bd6d9fa59a7e1af.tar.xz linux-fc6c12bcc19bdff6b4bcb02f5bd6d9fa59a7e1af.zip |
[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>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_attr.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_attr.c | 2 |
1 files changed, 1 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) 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); |