linux-stable/drivers/iio/magnetometer
Alban Bedel 8e71c04f86 iio:st_sensors: Fix oops when probing SPI devices
In SPI mode the transfer buffer is locked with a mutex. However this
mutex is only initilized after the probe, but some transfer needs to
be done in the probe.

To fix this bug we move the mutex initialization at the beginning of
the device probe.

Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Acked-by: Denis Ciocca <denis.ciocca@st.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2015-04-26 18:24:08 +01:00
..
ak8975.c iio: magnetometer: ak8975: Add AK8963 2015-01-27 18:49:59 +00:00
hid-sensor-magn-3d.c iio: hid-sensor-magn-3d: Introduce PM 2015-01-25 22:55:53 +00:00
Kconfig iio: ak8975: fix AK09911 dependencies 2015-02-28 11:26:54 +00:00
mag3110.c iio: magnetometer: mag3110: Place driver on standby on error 2015-04-01 17:24:09 +02:00
Makefile iio: ak8975: add ak09911 and ak09912 support 2014-12-12 12:28:20 +00:00
st_magn.h iio:magnetometer: Removed unnecessary parameter on common_probe function 2014-10-04 11:25:19 +01:00
st_magn_buffer.c iio:st_magn: Remove redundant call to iio_sw_buffer_preenable(). 2013-10-16 19:13:50 +01:00
st_magn_core.c iio:st_sensors: Fix oops when probing SPI devices 2015-04-26 18:24:08 +01:00
st_magn_i2c.c iio:common: Set the device pointer into ST common sensors library 2014-10-04 11:26:21 +01:00
st_magn_spi.c iio:common: Set the device pointer into ST common sensors library 2014-10-04 11:26:21 +01:00