--- a/drivers/net/ethernet/marvell/octeontx2/af/rvu.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu.c @@ -2281,7 +2281,7 @@ static int rvu_mbox_init(struct rvu *rvu goto free_regions; break; default: - return err; + goto free_regions; } mw->mbox_wq = alloc_workqueue(name,