diff options
author | Niels Dossche <dossche.niels@gmail.com> | 2022-03-11 02:27:08 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-03-12 09:53:14 +0300 |
commit | 46b348fd2d81a341b15fb3f3f986204b038f5c42 (patch) | |
tree | 983bff76abe22d31e92ecc1eb421a2508c88ccdd /net/vmw_vsock/virtio_transport.c | |
parent | 5e34af4142ffe68f01c8a9acae83300f8911e20c (diff) | |
download | linux-46b348fd2d81a341b15fb3f3f986204b038f5c42.tar.xz |
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: 4a5fe57e7751 ("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>
Diffstat (limited to 'net/vmw_vsock/virtio_transport.c')
0 files changed, 0 insertions, 0 deletions