From: Lars-Peter Clausen Date: Fri, 4 Oct 2013 11:07:00 +0000 (+0100) Subject: iio:buffer: Add proper locking for iio_update_buffers() X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~196^2~67 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a95194569f697a6cc10d00f9b9b3d21b0b820520;p=pandora-kernel.git iio:buffer: Add proper locking for iio_update_buffers() We need to make sure that in-kernel users of iio_update_buffers() do not race against each other or against unregistration of the device. So we need to take both the mlock and the info_exist_lock when calling iio_update_buffers() from a in-kernel consumer. Signed-off-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed