]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Fix VLANs null-pointer for 57710, 57711
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Sun, 15 Nov 2015 13:02:16 +0000 (15:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Nov 2015 20:13:01 +0000 (15:13 -0500)
commit450aeee82ce1e05dbe255770f2f17a9365df0883
tree346346d2c9e90d750e48a4d7bada35ec48fa8783
parent3b44174cbf36836b40152ba82e20d76912b41860
bnx2x: Fix VLANs null-pointer for 57710, 57711

Commit 9adc932e3eff "bnx2x: add vlan filtering offload" introduced
a regression in regard for vlans for 57710, 57711 adapters -
Loading 8021q module on a machine with such an adapter would cause
a null pointer dereference, as the driver mistakenly publishes it
has capabilities for vlan CTAG filtering.

Reported-by: Otto Sabart <osabart@redhat.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c