Skip to content

Commit 323d6db

Browse files
Geetha sowjanyakuba-moo
authored andcommitted
octeontx2-af: Free NIX_AF_INT_VEC_GEN irq
Due to the incorrect initial vector number in rvu_nix_unregister_interrupts(), NIX_AF_INT_VEC_GEN is not geeting free. Fix the vector number to include NIX_AF_INT_VEC_GEN irq. Fixes: 5ed6630 ("octeontx2-af: Add devlink health reporters for NIX") Signed-off-by: Geetha sowjanya <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 0fdba88 commit 323d6db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ static void rvu_nix_unregister_interrupts(struct rvu *rvu)
207207
rvu->irq_allocated[offs + NIX_AF_INT_VEC_RVU] = false;
208208
}
209209

210-
for (i = NIX_AF_INT_VEC_AF_ERR; i < NIX_AF_INT_VEC_CNT; i++)
210+
for (i = NIX_AF_INT_VEC_GEN; i < NIX_AF_INT_VEC_CNT; i++)
211211
if (rvu->irq_allocated[offs + i]) {
212212
free_irq(pci_irq_vector(rvu->pdev, offs + i), rvu_dl);
213213
rvu->irq_allocated[offs + i] = false;

0 commit comments

Comments
 (0)