2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 12:14:01 +08:00
linux-next/drivers/iio/accel
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
..
bma180.c iio: fix drivers that check buffer->scan_mask 2015-03-07 19:17:07 +00:00
bmc150-accel.c Merge 4.0-rc7 into staging-next 2015-04-07 11:03:02 +02:00
hid-sensor-accel-3d.c iio: hid-sensor-accel-3d: Introduce PM 2015-01-25 22:55:42 +00:00
Kconfig iio: add driver for Freescale MMA9553 2015-01-30 20:34:59 +00:00
kxcjk-1013.c Merge 4.0-rc7 into staging-next 2015-04-07 11:03:02 +02:00
kxsd9.c iio:accel:kxsd9 fix missing mutex unlock 2013-11-17 15:22:00 +00:00
Makefile iio: add driver for Freescale MMA9553 2015-01-30 20:34:59 +00:00
mma8452.c iio: accel: mma8452: Remove trailing whitespace 2015-01-01 12:12:09 +00:00
mma9551_core.c iio: add driver for Freescale MMA9553 2015-01-30 20:34:59 +00:00
mma9551_core.h iio: add driver for Freescale MMA9553 2015-01-30 20:34:59 +00:00
mma9551.c iio: accel: mma9551: Check gpiod_to_irq return value 2015-03-09 13:27:49 +00:00
mma9553.c iio: improve usage of gpiod API 2015-02-22 09:49:22 +00:00
ssp_accel_sensor.c iio: common: ssp_sensors: Add sensorhub accelerometer sensor 2015-01-29 18:49:56 +00:00
st_accel_buffer.c iio:st_accel: Drop redundant call to iio_sw_buffer_preenable() 2013-10-16 19:11:11 +01:00
st_accel_core.c iio:st_sensors: Fix oops when probing SPI devices 2015-04-26 18:24:08 +01:00
st_accel_i2c.c iio: st-sensors: add support for lis3lv02d accelerometer 2015-03-28 10:55:36 +00:00
st_accel_spi.c iio:common: Set the device pointer into ST common sensors library 2014-10-04 11:26:21 +01:00
st_accel.h iio: st-sensors: add support for lis3lv02d accelerometer 2015-03-28 10:55:36 +00:00