diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2021-08-06 10:59:47 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-08-06 15:18:40 +0200 |
commit | de0534df93474f268486c486ea7e01b44a478026 (patch) | |
tree | 93262aac76210b8a1249b310dc3c7ed61f1d68c7 /drivers/fpga | |
parent | nvmem: qfprom: sc7280: Handle the additional power-domains vote (diff) | |
download | linux-de0534df93474f268486c486ea7e01b44a478026.tar.xz linux-de0534df93474f268486c486ea7e01b44a478026.zip |
nvmem: core: fix error handling while validating keepout regions
Current error path on failure of validating keepout regions is calling
put_device, eventhough the device is not even registered at that point.
Fix this by adding proper error handling of freeing ida and nvmem.
Fixes: fd3bb8f54a88 ("nvmem: core: Add support for keepout regions")
Cc: <stable@vger.kernel.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20210806085947.22682-5-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/fpga')
0 files changed, 0 insertions, 0 deletions