diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2022-01-29 09:32:47 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-01-30 13:51:24 +0000 |
commit | e0a2e37f303828d030a83f33ffe14b36cb88d563 (patch) | |
tree | 558e72ce4ba9f90c199bf042518200156e5319d1 /drivers/clocksource/dw_apb_timer.c | |
parent | a1cba0e2deeb0fe5200602658ed1078a714f8667 (diff) |
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 'drivers/clocksource/dw_apb_timer.c')
0 files changed, 0 insertions, 0 deletions