]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: fix crash on big-endian when adding VLAN
authorMichal Schmidt <mschmidt@redhat.com>
Wed, 2 Mar 2016 12:47:05 +0000 (13:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Mar 2016 18:31:55 +0000 (13:31 -0500)
commit7f0cdc94f94540ae9a5adb3baf4822a635ef1c7e
tree4df9d2bf14b0fe9eea6dc9666f8e119b33ccd89c
parent82a9a2c97374f8f260bbfb5b72d0f19478610408
bnx2x: fix crash on big-endian when adding VLAN

bnx2x crashes during the initialization of the 8021q module on ppc64.
The bug is a missing conversion from le32 in
bnx2x_handle_classification_eqe() when obtaining the cid value from
struct eth_event_data.

The fields in struct eth_event_data should all be declared as
little-endian and conversions added where missing.

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c