aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/subcmd/parse-options.c
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2020-05-17 09:59:53 +0000
committerJonathan Cameron <[email protected]>2020-07-05 13:22:48 +0000
commitb0536f9826a5ed3328d527b4fc1686867a9f3041 (patch)
tree84203d3adb22d2d3795c4dbd927a7e0a27998c02 /tools/lib/subcmd/parse-options.c
parentiio:pressure:ms5611 Fix buffer element alignment (diff)
downloadkernel-b0536f9826a5ed3328d527b4fc1686867a9f3041.tar.gz
kernel-b0536f9826a5ed3328d527b4fc1686867a9f3041.zip
iio: adc: ad7780: Fix a resource handling path in 'ad7780_probe()'
If 'ad7780_init_gpios()' fails, we must not release some resources that have not been allocated yet. Return directly instead. Fixes: 5bb30e7daf00 ("staging: iio: ad7780: move regulator to after GPIO init") Fixes: 9085daa4abcc ("staging: iio: ad7780: add gain & filter gpio support") Signed-off-by: Christophe JAILLET <[email protected]> Acked-by: Renato Lui Geh <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/lib/subcmd/parse-options.c')
0 files changed, 0 insertions, 0 deletions