diff options
-rw-r--r-- | drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c index ba88ddb4580b..886938d025cd 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c +++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c | |||
@@ -838,9 +838,9 @@ static void bnx2fc_indicate_netevent(void *context, unsigned long event, | |||
838 | return; | 838 | return; |
839 | mutex_lock(&bnx2fc_dev_lock); | 839 | mutex_lock(&bnx2fc_dev_lock); |
840 | list_for_each_entry_safe(interface, tmp, &if_list, list) { | 840 | list_for_each_entry_safe(interface, tmp, &if_list, list) { |
841 | if (interface->hba != hba) | 841 | if (interface->hba == hba && |
842 | continue; | 842 | interface->vlan_id == (vlan_id & VLAN_VID_MASK)) |
843 | __bnx2fc_destroy(interface); | 843 | __bnx2fc_destroy(interface); |
844 | } | 844 | } |
845 | mutex_unlock(&bnx2fc_dev_lock); | 845 | mutex_unlock(&bnx2fc_dev_lock); |
846 | return; | 846 | return; |