Skip to content

Commit 3ef0743

Browse files
tititiou36kuba-moo
authored andcommitted
net: airoha: Fix an error handling path in airoha_probe()
If an error occurs after a successful airoha_hw_init() call, airoha_ppe_deinit() needs to be called as already done in the remove function. Fixes: 00a7678 ("net: airoha: Introduce flowtable offload support") Signed-off-by: Christophe JAILLET <[email protected]> Reviewed-by: Simon Horman <[email protected]> Acked-by: Lorenzo Bianconi <[email protected]> Link: https://patch.msgid.link/1c940851b4fa3c3ed2a142910c821493a136f121.1746715755.git.christophe.jaillet@wanadoo.fr Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 40c4723 commit 3ef0743

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/airoha/airoha_eth.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2984,6 +2984,7 @@ static int airoha_probe(struct platform_device *pdev)
29842984
error_napi_stop:
29852985
for (i = 0; i < ARRAY_SIZE(eth->qdma); i++)
29862986
airoha_qdma_stop_napi(&eth->qdma[i]);
2987+
airoha_ppe_deinit(eth);
29872988
error_hw_cleanup:
29882989
for (i = 0; i < ARRAY_SIZE(eth->qdma); i++)
29892990
airoha_hw_cleanup(&eth->qdma[i]);

0 commit comments

Comments
 (0)