bnxt_en: Protect bnxt_set_eee() and bnxt_set_pauseparam() with mutex.
commit743fead4d9588b77b610a84c892d21de9626bfdb
authorMichael Chan <michael.chan@broadcom.com>
Mon, 21 Sep 2020 01:08:56 +0000 (20 21:08 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Sep 2020 16:03:14 +0000 (26 18:03 +0200)
tree1c1c9dd57a599f70ae0d02435b992e7bb73c6539
parente238cb110123241aa1d0f379e72a387522a8003d
bnxt_en: Protect bnxt_set_eee() and bnxt_set_pauseparam() with mutex.

[ Upstream commit a53906908148d64423398a62c4435efb0d09652c ]

All changes related to bp->link_info require the protection of the
link_lock mutex.  It's not sufficient to rely just on RTNL.

Fixes: 163e9ef63641 ("bnxt_en: Fix race when modifying pause settings.")
Reviewed-by: Edwin Peer <edwin.peer@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c