bnxt_en: Protect bnxt_set_eee() and bnxt_set_pauseparam() with mutex.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 21 Sep 2020 01:08:56 +0000 (21:08 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Sep 2020 16:05:25 +0000 (18:05 +0200)
commit786c627c377f46038a9c0044e76741fc35665881
tree728e36735689f9fba6a517337a5e2692332d53b9
parent138ded90a311e6a1b8bc3bba95a6bb3f66966521
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