]> git.baikalelectronics.ru Git - kernel.git/commit
iio:buffer: Free active scan mask in iio_disable_all_buffers()
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 15 Oct 2013 08:38:00 +0000 (09:38 +0100)
committerJonathan Cameron <jic23@kernel.org>
Tue, 15 Oct 2013 18:26:43 +0000 (19:26 +0100)
commit8e974cb5542ae37bc0a431b63dcab06fcae389ed
tree2ecb9bc3ef5b236cde08845b168f40d8c5075869
parent60897fd837dc9b2bfda441ca163dc38b6a0b79e0
iio:buffer: Free active scan mask in iio_disable_all_buffers()

Usually the active scan mask is freed in __iio_update_buffers() when the buffer
is disabled. But when the device is still sampling when it is removed we'll end
up disabling the buffers in iio_disable_all_buffers(). So we also need to free
the active scan mask here, otherwise it will be leaked.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-buffer.c