]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit7991cb9cfbce1b60ac1cff819350b05de4d902e1
tree3a7d864b5737aac26e135ffd2d8f91125f3d2fa0
parent949989b36c2261125a7d01a4ca3d5b5ee64da05c
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