]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Aug 2012 15:22:36 +0000 (08:22 -0700)
commit0a24745eefd8896295afec304f7d52941f336734
tree08523d094176a4a902d4c16f6c2bbc3c784e52fa
parented29dbdecb478f6bb8eb40e3f053f3ca76faaff8
be2net: Missing byteswap in be_get_fw_log_level causes oops on PowerPC

commit ac46a4623815113a0305b2a491c125f473a88c53 upstream.

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.

Signed-off-by: Anton Blanchard <anton@samba.org>
Acked-by: Sathya Perla <sperla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/emulex/benet/be_ethtool.c
drivers/net/ethernet/emulex/benet/be_main.c