[SCSI] libfc: Initialize fc_rport_identifiers inside fc_rport_create
authorRobert Love <robert.w.love@intel.com>
Tue, 25 Aug 2009 21:02:59 +0000 (14:02 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 10 Sep 2009 17:07:57 +0000 (12:07 -0500)
commit9737e6a7b5b8af48f983cd565df93493597c565b
tree2bb3e50171af1fbc18d0f739d760b6218031fb31
parent935d0fce44b906268b8a29de4e72ebb57a3a06d8
[SCSI] libfc: Initialize fc_rport_identifiers inside fc_rport_create

Currently these values are initialized by the callers. This was exposed
by a later patch that adds PLOGI request support. The patch failed to
initialize the new remote port's roles and it caused problems. This patch
has the rport_create routine initialize the identifiers and then the
callers can override them with real values.

Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/libfc/fc_disc.c
drivers/scsi/libfc/fc_lport.c
drivers/scsi/libfc/fc_rport.c
include/scsi/libfc.h