diff options
-rw-r--r-- | drivers/firmware/iscsi_ibft.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/firmware/iscsi_ibft.c b/drivers/firmware/iscsi_ibft.c index 7b7ddc2d51c9..420a96e7f2db 100644 --- a/drivers/firmware/iscsi_ibft.c +++ b/drivers/firmware/iscsi_ibft.c | |||
@@ -754,11 +754,11 @@ static int __init ibft_check_nic_for(struct ibft_nic *nic, int entry) | |||
754 | rc = 1; | 754 | rc = 1; |
755 | break; | 755 | break; |
756 | case ibft_eth_ip_addr: | 756 | case ibft_eth_ip_addr: |
757 | if (!memcmp(nic->dhcp, nulls, sizeof(nic->dhcp))) | 757 | if (memcmp(nic->ip_addr, nulls, sizeof(nic->ip_addr))) |
758 | rc = 1; | 758 | rc = 1; |
759 | break; | 759 | break; |
760 | case ibft_eth_subnet_mask: | 760 | case ibft_eth_subnet_mask: |
761 | if (!memcmp(nic->dhcp, nulls, sizeof(nic->dhcp))) | 761 | if (nic->subnet_mask_prefix) |
762 | rc = 1; | 762 | rc = 1; |
763 | break; | 763 | break; |
764 | case ibft_eth_origin: | 764 | case ibft_eth_origin: |