From: Lars-Peter Clausen Date: Thu, 24 Oct 2013 09:41:00 +0000 (+0100) Subject: iio: adc: ti_am335x_adc: avoid double free of buffer. X-Git-Tag: v3.13-rc2~16^2~4^2~1 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe26980e03f435164777184a91c1e5f3b4ed22a5;p=pandora-kernel.git 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 Reported-by: Sebastian Andrzej Siewior Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed