]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 8 Jul 2016 02:28:44 +0000 (19:28 -0700)
commitdd92fc612dfb7f0760c7c60da89ac701249c46a4
treed94e5268160139af4cdc218027c1ce603ca6f054
parent8421ebaf85fdc3200df0effbe90b0cb1a6ecb336
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>
Orabug: 23718192
Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c