]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
octeontx2-pf: Add missing mutex lock in otx2_get_pauseparam
authorSubbaraya Sundeep <sbhatta@marvell.com>
Wed, 29 Nov 2023 05:23:42 +0000 (10:53 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Dec 2023 17:36:34 +0000 (18:36 +0100)
commit51e7868e5df93f31e90cbd47c9087927baa9adf8
tree340b5cde19d992c75372a58716ac53ed82117f83
parenta239affd93d340cc3934ab579c232f72cc52ebdf
octeontx2-pf: Add missing mutex lock in otx2_get_pauseparam

[ Upstream commit 9572c949385aa2ef10368287c439bcb7935137c8 ]

All the mailbox messages sent to AF needs to be guarded
by mutex lock. Add the missing lock in otx2_get_pauseparam
function.

Fixes: 75f36270990c ("octeontx2-pf: Support to enable/disable pause frames via ethtool")
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c