Commit 21a6f267 authored by Subbaraya Sundeep's avatar Subbaraya Sundeep Committed by sanglipeng
Browse files

octeontx2-vf: Detach LF resources on probe cleanup

stable inclusion
from stable-v5.10.180
commit 3605b3318483714f4cda7c7b629d4463bd9ed94e
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8FC2O

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3605b3318483714f4cda7c7b629d4463bd9ed94e



--------------------------------

[ Upstream commit 99ae1260 ]

When a VF device probe fails due to error in MSIX vector allocation then
the resources NIX and NPA LFs were not detached. Fix this by detaching
the LFs when MSIX vector allocation fails.

Fixes: 3184fb5b ("octeontx2-vf: Virtual function driver support")
Signed-off-by: default avatarSubbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: default avatarSunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: default avatarSai Krishna <saikrishnag@marvell.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 68d6d3e4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment