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:45:03 +0000 (18:45 +0100)
commit6ddf005fd6cc82a94b8008e14b63ec6a03790fbb
tree0135ad3e7df2d3ab28b48f1481955b5d2971191e
parenta08768110a6574e4d994b28f448ca5c016fbf0d4
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