]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: ti_am335x_adc: avoid double free of buffer.
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 24 Oct 2013 09:41:00 +0000 (10:41 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 9 Nov 2013 12:33:24 +0000 (12:33 +0000)
commitc303be9e5ebfaeba03b7d89f910b8bcfaf1da9e9
tree80498933c52076c599558222b5aa0186ee1e2bb5
parent89843e49d530beeb7b5c53985ef72f1fc265274f
iio: adc: ti_am335x_adc: avoid double free of buffer.

The driver is missing the iio_buffer_attach() call. As such it will attempt
to free the buffer twice on removal.

Introduced in commit 9e69c9 ("iio: Add reference counting for buffers").

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Reported-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/ti_am335x_adc.c