]> www.infradead.org Git - users/dwmw2/linux.git/commit
octeontx2-vf: Detach LF resources on probe cleanup
authorSubbaraya Sundeep <sbhatta@marvell.com>
Wed, 3 May 2023 07:09:44 +0000 (12:39 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:53:37 +0000 (11:53 +0200)
commit3cad35b62eaa9f5c67d5434eaedbf7b160cd1d36
tree109961d24de020cfe8252d48ef45ff567c43517c
parent401d11f274a52bfe23554330744fcbd0d08e337b
octeontx2-vf: Detach LF resources on probe cleanup

[ Upstream commit 99ae1260fdb5f15beab8a3adfb93a9041c87a2c1 ]

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: 3184fb5ba96e ("octeontx2-vf: Virtual function driver support")
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: Sai Krishna <saikrishnag@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c