iio:kfifo: Fix memory leak
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 15 Oct 2013 08:30:00 +0000 (09:30 +0100)
committerJonathan Cameron <jic23@kernel.org>
Tue, 15 Oct 2013 18:18:34 +0000 (19:18 +0100)
commitf6c23f483937b8be53f313ec31068acdca91a25d
tree4b976bdb8eebfaa0ece42df5d2c779c3d3a37cbf
parentef4d4d1b8f2cda46ed483ee2f0d6f5b63bc7c020
iio:kfifo: Fix memory leak

We need to free the kfifo when we release the buffer, otherwise the fifos memory
will be leaked.

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