octeon_ep: Fix a memory leak in the error handling path of octep_request_irqs()

'oct->non_ioq_irq_names' is not freed in the error handling path of
octep_request_irqs().

Add the missing kfree().

Fixes: 37d79d0596 ("octeon_ep: add Tx/Rx processing and interrupt support")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Veerasenareddy Burru <vburru@marvell.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Christophe JAILLET
2022-05-17 22:59:51 +02:00
committed by Jakub Kicinski
parent 638c1152d5
commit 4d3bf6fb53

View File

@@ -267,6 +267,8 @@ non_ioq_irq_err:
--i; --i;
free_irq(oct->msix_entries[i].vector, oct); free_irq(oct->msix_entries[i].vector, oct);
} }
kfree(oct->non_ioq_irq_names);
oct->non_ioq_irq_names = NULL;
alloc_err: alloc_err:
return -1; return -1;
} }