OpenCloudOS-Kernel/drivers/net/ethernet/atheros/alx
Niels Dossche 46b348fd2d alx: acquire mutex for alx_reinit in alx_change_mtu
alx_reinit has a lockdep assertion that the alx->mtx mutex must be held.
alx_reinit is called from two places: alx_reset and alx_change_mtu.
alx_reset does acquire alx->mtx before calling alx_reinit.
alx_change_mtu does not acquire this mutex, nor do its callers or any
path towards alx_change_mtu.
Acquire the mutex in alx_change_mtu.

The issue was introduced when the fine-grained locking was introduced
to the code to replace the RTNL. The same commit also introduced the
lockdep assertion.

Fixes: 4a5fe57e77 ("alx: use fine-grained locking instead of RTNL")
Signed-off-by: Niels Dossche <dossche.niels@gmail.com>
Link: https://lore.kernel.org/r/20220310232707.44251-1-dossche.niels@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-03-11 22:53:14 -08:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
alx.h alx: use fine-grained locking instead of RTNL 2021-05-13 13:09:26 -07:00
ethtool.c alx: fix missing unlock on error in alx_set_pauseparam() 2021-05-14 15:10:51 -07:00
hw.c alx: add msi-x support 2016-09-09 20:51:21 -07:00
hw.h ethernet/atheros: use core min/max MTU checking 2016-10-18 11:34:18 -04:00
main.c alx: acquire mutex for alx_reinit in alx_change_mtu 2022-03-11 22:53:14 -08:00
reg.h Add Killer E2500 device ID in alx driver. 2016-08-29 00:23:50 -04:00