Skip to content

Commit 99ae126

Browse files
Subbaraya Sundeepdavem330
authored andcommitted
octeontx2-vf: Detach LF resources on probe cleanup
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: 3184fb5 ("octeontx2-vf: Virtual function driver support") Signed-off-by: Subbaraya Sundeep <[email protected]> Signed-off-by: Sunil Kovvuri Goutham <[email protected]> Signed-off-by: Sai Krishna <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c926252 commit 99ae126

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/marvell/octeontx2/nic

1 file changed

+1
-1
lines changed

drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ static int otx2vf_probe(struct pci_dev *pdev, const struct pci_device_id *id)
621621

622622
err = otx2vf_realloc_msix_vectors(vf);
623623
if (err)
624-
goto err_mbox_destroy;
624+
goto err_detach_rsrc;
625625

626626
err = otx2_set_real_num_queues(netdev, qcount, qcount);
627627
if (err)

0 commit comments

Comments
 (0)