be2net: Missing byteswap in be_get_fw_log_level causes oops on PowerPC
authorAnton Blanchard <anton@samba.org>
Tue, 24 Jul 2012 15:05:25 +0000 (15:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Jul 2012 22:24:13 +0000 (15:24 -0700)
commitac46a4623815113a0305b2a491c125f473a88c53
treee5e9d132145002ce9e26ac3ca814dfdbfabb96f1
parent57dbf29a54bda5773f9ed1d00e3cc633294259da
be2net: Missing byteswap in be_get_fw_log_level causes oops on PowerPC

We are seeing an oops in be_get_fw_log_level on ppc64 where we walk
off the end of memory.

commit 941a77d582c8 (be2net: Fix to allow get/set of debug levels in
the firmware.) requires byteswapping of num_modes and num_modules.

Cc: stable@vger.kernel.org # 3.5+
Signed-off-by: Anton Blanchard <anton@samba.org>
Acked-by: Sathya Perla <sperla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_ethtool.c
drivers/net/ethernet/emulex/benet/be_main.c