diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2020-04-26 22:44:03 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-27 18:37:43 +0300 |
commit | f2c5f3aefb3a5cb579486c6fdc9520bd09241e4e (patch) | |
tree | 90dbb33bdc6a588fc5edf11998b7a9ff407c62de | |
parent | f289ee6ebb64ef45abb845a08f7f42f3aa0c3892 (diff) | |
download | linux-f2c5f3aefb3a5cb579486c6fdc9520bd09241e4e.tar.xz |
iio: dac: vf610: Fix an error handling path in 'vf610_dac_probe()'
commit aad4742fbf0a560c25827adb58695a4497ffc204 upstream.
A call to 'vf610_dac_exit()' is missing in an error handling path.
Fixes: 1b983bf42fad ("iio: dac: vf610_dac: Add IIO DAC driver for Vybrid SoC")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/iio/dac/vf610_dac.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/dac/vf610_dac.c b/drivers/iio/dac/vf610_dac.c index 5dccdd16cab3..9cf2e2933b66 100644 --- a/drivers/iio/dac/vf610_dac.c +++ b/drivers/iio/dac/vf610_dac.c @@ -234,6 +234,7 @@ static int vf610_dac_probe(struct platform_device *pdev) return 0; error_iio_device_register: + vf610_dac_exit(info); clk_disable_unprepare(info->clk); return ret; |