kernel-fxtec-pro1x/drivers/fpga
Tobias Klauser e8c77bda05 fpga manager: Fix firmware resource leak on error
If fpga_mgr_buf_load() fails, the firmware resource previously allocated
by request_firmware() is leaked. Fix it by calling release_firmware()
regardless of the return value of fpga_mgr_buf_load().

Found by the Coverity scanner (CID 1339653).

Fixes: 6a8c3be7ec ("add FPGA manager core")
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Alan Tull <atull@opensource.altera.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-11-24 15:25:46 -08:00
..
fpga-mgr.c fpga manager: Fix firmware resource leak on error 2015-11-24 15:25:46 -08:00
Kconfig fpga manager: Adding FPGA Manager support for Xilinx Zynq 7000 2015-10-17 21:57:16 -07:00
Makefile fpga manager: Adding FPGA Manager support for Xilinx Zynq 7000 2015-10-17 21:57:16 -07:00
socfpga.c fpga: socfpga: Fix check of return value of devm_request_irq 2015-10-29 15:20:25 -07:00
zynq-fpga.c fpga: zynq-fpga: Fix issue with drvdata being overwritten. 2015-10-23 16:49:44 -07:00