]> git.baikalelectronics.ru Git - kernel.git/commit
fpga: altera-cvp: Fix an error handling path in 'altera_cvp_probe()'
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Thu, 28 Jun 2018 01:56:18 +0000 (20:56 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jul 2018 14:55:22 +0000 (16:55 +0200)
commit2ac35472cda893d3c39602f78421a48c503fdf2c
tree817c78722f8b85c440a7661dcbdb17e85409fd40
parente57c2fe13306835cdffec6982f41ab71e91be943
fpga: altera-cvp: Fix an error handling path in 'altera_cvp_probe()'

If 'fpga_mgr_create()' fails, we should release some resources, as done
in the other error handling path of the function.

Fixes: 9c5c37b2ddc8 ("fpga: manager: change api, don't use drvdata")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Moritz Fischer <mdf@kernel.org>
Acked-by: Alan Tull <atull@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/fpga/altera-cvp.c