From: Lars-Peter Clausen Date: Tue, 15 Oct 2013 08:38:00 +0000 (+0100) Subject: iio:buffer: Free active scan mask in iio_disable_all_buffers() X-Git-Tag: v3.12-rc6~8^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e086ed76671252d5b539854a83f8506be7bea05c;p=pandora-kernel.git 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 Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed