Commit 9cb9433f authored by Federico Vaga's avatar Federico Vaga

sw:drv: fix double free on registration failure

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent e9269043
......@@ -430,10 +430,8 @@ static int gn412x_fcl_probe(struct platform_device *pdev)
}
err = compat_fpga_mgr_register(gn412x->mgr);
if (err) {
compat_fpga_mgr_free(gn412x->mgr);
if (err)
goto err_fpga_reg;
}
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment