]> 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)
commit5a26d08bd5ddf77306faa7f5a25497503cbad43d
tree4df9d2bf14b0fe9eea6dc9666f8e119b33ccd89c
parentb49dd6c710717264842b4d54fa2524f8f53baef9
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