summaryrefslogtreecommitdiffstats
path: root/drivers/fpga/socfpga.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-11-18 10:48:16 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-11-24 15:25:46 -0800
commite8c77bda05e5d93cce6f38cfdde4192307951dea (patch)
tree966ff193f3eb29d69dc31face6da2f37c4191c3e /drivers/fpga/socfpga.c
parent07687c031d14a1f36613231c0ea13ce3c4025615 (diff)
downloadop-kernel-dev-e8c77bda05e5d93cce6f38cfdde4192307951dea.zip
op-kernel-dev-e8c77bda05e5d93cce6f38cfdde4192307951dea.tar.gz
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: 6a8c3be7ec8e ("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>
Diffstat (limited to 'drivers/fpga/socfpga.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud