]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
octeontx2-pf: Fix lmtst ID used in aura free
authorGeetha sowjanya <gakula@marvell.com>
Tue, 3 Jan 2023 03:50:12 +0000 (09:20 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Jan 2023 09:19:03 +0000 (09:19 +0000)
commit4af1b64f80fbe1275fb02c5f1c0cef099a4a231f
tree7bb62617b602754e86a1a97ca590e1d92b3de4e9
parent9c807965483f42df1d053b7436eedd6cf28ece6f
octeontx2-pf: Fix lmtst ID used in aura free

Current code uses per_cpu pointer to get the lmtst_id mapped to
the core on which aura_free() is executed. Using per_cpu pointer
without preemption disable causing mismatch between lmtst_id and
core on which pointer gets freed. This patch fixes the issue by
disabling preemption around aura_free.

Fixes: ef6c8da71eaf ("octeontx2-pf: cn10K: Reserve LMTST lines per core")
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: Geetha sowjanya <gakula@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c