linux/drivers/iio/gyro
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
..
adis16080.c iio:adis16080: Use spi_sync_transfer() 2013-10-05 11:58:54 +01:00
adis16130.c iio: gyro: adis16130: Use devm_iio_device_register 2013-11-24 21:07:17 +00:00
adis16136.c iio: gyro: adis16136: Use devm_iio_device_alloc 2013-08-17 15:50:54 +01:00
adis16260.c iio: adis: Switch sampling frequency attr to core support. 2014-07-07 09:44:17 +01:00
adxrs450.c iio: gyro: adxrs450: Use devm_iio_device_register 2013-11-24 21:07:18 +00:00
bmg160.c Merge 4.0-rc7 into staging-next 2015-04-07 11:03:02 +02:00
hid-sensor-gyro-3d.c iio: hid-sensor-gyro-3d: Introduce PM 2015-01-25 22:55:45 +00:00
itg3200_buffer.c iio: gyro: itg3200: Fix indio_dev->trig assignment 2014-08-25 21:49:00 +01:00
itg3200_core.c iio: gyro: itg3200: add suspend/resume support. 2015-03-09 14:54:42 +00:00
Kconfig iio: gyro: bmi055 gyro sensor driver 2014-09-14 18:40:42 +01:00
Makefile iio: common: ssp_sensors: Add sensorhub gyroscope sensor 2015-01-29 18:49:56 +00:00
ssp_gyro_sensor.c iio: common: ssp_sensors: Add sensorhub gyroscope sensor 2015-01-29 18:49:56 +00:00
st_gyro_buffer.c iio:st_gyro: Remove redundant call to iio_sw_buffer_preenable(). 2013-10-16 19:12:46 +01:00
st_gyro_core.c iio:st_sensors: Fix oops when probing SPI devices 2015-04-26 18:24:08 +01:00
st_gyro_i2c.c iio:common: Set the device pointer into ST common sensors library 2014-10-04 11:26:21 +01:00
st_gyro_spi.c iio:common: Set the device pointer into ST common sensors library 2014-10-04 11:26:21 +01:00
st_gyro.h iio:gyro: Removed unnecessary parameter on common_probe function 2014-10-04 11:24:52 +01:00