]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf89cbec87118b3b1e7c52d1f50b1b53c7f0ed1a7
tree5d9fc010a25a9cd1dfbff75e6b191e70e50005b3
parent9240fa9e4caa31a3ce3173133429dd7e9147c8d6
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