bnx2x: fix dump flag handling
authorMichal Schmidt <mschmidt@redhat.com>
Mon, 1 Jul 2013 15:23:06 +0000 (17:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jul 2013 07:15:56 +0000 (00:15 -0700)
commit5bb680d6cbe36de9d7ba12b05f845c91a8692318
tree5d9fc010a25a9cd1dfbff75e6b191e70e50005b3
parent058eec4116935c5640299913e1e0715e87ec622a
bnx2x: fix dump flag handling

bnx2x interprets the dump flag as an index of a register preset.
It is important to validate the index to avoid out of bounds
memory accesses.

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