diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2017-04-24 16:34:21 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-04-26 11:38:56 +0200 |
commit | e73bbf64907c88d3bb811756fc25548131524035 (patch) | |
tree | 2780e7b12e77a570dde0cadc346a266873b12189 /drivers/fpga/ts73xx-fpga.c | |
parent | d721f9bbe6a7d9543f560053f8be5237e7db18e9 (diff) | |
download | linux-e73bbf64907c88d3bb811756fc25548131524035.tar.bz2 |
fpga: region: release FPGA region reference in error path
If fpga_region_get_manager() fails in fpga_region_program_fpga(), a
reference to the fpga_manager instance previously acquired through
fpga_region_get() is retained. Make sure to properly release it in the
error case by using a separate jump label which will call
fpga_region_put() in before returning.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Moritz Fischer <mdf@kernel.org>
Signed-off-by: Alan Tull <atull@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/fpga/ts73xx-fpga.c')
0 files changed, 0 insertions, 0 deletions