On Tue, 2011-01-11 at 15:25 -0800, Robert Love wrote:
> The list head was not being initialized.
> 
> Signed-off-by: Robert Love <[email protected]>
> Tested-by: Ross Brattain <[email protected]>
> ---
>  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);

Robert, I think the ema_list is being initialized in libfc_host_alloc().
If we initialize here again, the NPIV ports will not get created, as
fc_exch_alloc() fails when trying to send FDISC.


>       INIT_DELAYED_WORK(&lport->retry_work, fc_lport_timeout);
>       mutex_init(&lport->lp_mutex);
>  
> 
> _______________________________________________
> devel mailing list
> [email protected]
> https://lists.open-fcoe.org/mailman/listinfo/devel
> 



_______________________________________________
devel mailing list
[email protected]
https://lists.open-fcoe.org/mailman/listinfo/devel

Reply via email to