]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Fix ethtool -x crash when device is down.
authorMichael Chan <michael.chan@broadcom.com>
Wed, 11 Apr 2018 15:50:13 +0000 (11:50 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Apr 2018 18:41:59 +0000 (14:41 -0400)
commit153472941ce2a1598469b7bc971626aad04d8cf1
tree3a7d864b5737aac26e135ffd2d8f91125f3d2fa0
parent9b20e45fb2cfc1377b64af156a4ba5af8d7843c0
bnxt_en: Fix ethtool -x crash when device is down.

Fix ethtool .get_rxfh() crash by checking for valid indirection table
address before copying the data.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c