Commit 50db6b13 authored by Seokmann Ju's avatar Seokmann Ju Committed by James Bottomley
Browse files

[SCSI] qla2xxx: Add a filter to compare port_name against the physical on vport creation.

During vport creation, there was a possibility to get create a
vport with same port_name as pport.  A new filter has added to
compare given port_name with the port_name of the pport.
Signed-Off-by: default avatarSeokmann Ju <>
Signed-off-by: default avatarAndrew Vasquez <>
Signed-off-by: default avatarJames Bottomley <>
parent 0b05a1f0
...@@ -341,6 +341,8 @@ qla24xx_vport_create_req_sanity_check(struct fc_vport *fc_vport) ...@@ -341,6 +341,8 @@ qla24xx_vport_create_req_sanity_check(struct fc_vport *fc_vport)
/* Check up unique WWPN */ /* Check up unique WWPN */
u64_to_wwn(fc_vport->port_name, port_name); u64_to_wwn(fc_vport->port_name, port_name);
if (!memcmp(port_name, ha->port_name, WWN_SIZE))
vha = qla24xx_find_vhost_by_name(ha, port_name); vha = qla24xx_find_vhost_by_name(ha, port_name);
if (vha) if (vha)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment