diff options
author | 2022-01-29 09:32:47 +0100 | |
---|---|---|
committer | 2022-01-30 13:51:24 +0000 | |
commit | e0a2e37f303828d030a83f33ffe14b36cb88d563 (patch) | |
tree | 558e72ce4ba9f90c199bf042518200156e5319d1 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | iio: frequency: admv1013: remove the always true condition (diff) | |
download | wireguard-linux-e0a2e37f303828d030a83f33ffe14b36cb88d563.tar.xz wireguard-linux-e0a2e37f303828d030a83f33ffe14b36cb88d563.zip |
iio: adc: men_z188_adc: Fix a resource leak in an error handling path
If iio_device_register() fails, a previous ioremap() is left unbalanced.
Update the error handling path and add the missing iounmap() call, as
already done in the remove function.
Fixes: 74aeac4da66f ("iio: adc: Add MEN 16z188 ADC driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/320fc777863880247c2aff4a9d1a54ba69abf080.1643445149.git.christophe.jaillet@wanadoo.fr
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions