[Open-FCoE] [PATCH] libfc: Initialize list of EM anchors

Robert Love robert.w.love at intel.com
Tue Jan 11 23:25:25 UTC 2011


The list head was not being initialized.

Signed-off-by: Robert Love <robert.w.love at intel.com>
Tested-by: Ross Brattain <ross.b.brattain at intel.com>
---
 drivers/scsi/libfc/fc_lport.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/scsi/libfc/fc_lport.c b/drivers/scsi/libfc/fc_lport.c
index e0ef814..c12f348 100644
--- a/drivers/scsi/libfc/fc_lport.c
+++ b/drivers/scsi/libfc/fc_lport.c
@@ -1590,6 +1590,7 @@ void fc_lport_enter_flogi(struct fc_lport *lport)
  */
 int fc_lport_config(struct fc_lport *lport)
 {
+	INIT_LIST_HEAD(&lport->ema_list);
 	INIT_DELAYED_WORK(&lport->retry_work, fc_lport_timeout);
 	mutex_init(&lport->lp_mutex);
 




More information about the devel mailing list