]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
iio: adc: ad7280a: Fix memory leak
authorMichael Hennerich <michael.hennerich@analog.com>
Wed, 26 Oct 2011 11:38:18 +0000 (13:38 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 00:28:56 +0000 (16:28 -0800)
commit703a9ce45abf0ae0221161fbb11952dc528db0b0
treea09b2f9a08778018a954f9053634bf9348f106ce
parente15fbc91a4304a977ed99c3eb21bab7015e86c11
iio: adc: ad7280a: Fix memory leak

Free channels in case read fails with error.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/adc/ad7280a.c