]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Sep 2020 02:04:44 +0000 (19:04 -0700)
commit1279e477c27fd09a68c04c0f5ea85e95669771ec
treedf313d38d440e3bae2826770dc59b61cb7b46eba
parentd6a89321046beb7661a87f39ca3c32bdecf3d886
bnxt_en: Protect bnxt_set_eee() and bnxt_set_pauseparam() with mutex.

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: f6c284d4a908 ("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>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c