linux/drivers/iio/pressure
Alban Bedel 57a01173d1 iio:st_sensors: Fix oops when probing SPI devices
commit 8e71c04f86 upstream.

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>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
[ luis: backported to 3.16:
  - use 'pdata' instead of 'press_data' in st_press_common_probe()
  - adjusted context ]
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
History 2015-05-28 09:59:58 +01:00
..
hid-sensor-press.c iio: pressure: hid-sensor-press: Fix modifier 2015-05-28 09:59:57 +01:00
Kconfig iio: Add Freescale MPL115A2 pressure / temperature sensor driver 2014-05-03 11:31:36 +01:00
Makefile iio: Add Freescale MPL115A2 pressure / temperature sensor driver 2014-05-03 11:31:36 +01:00
mpl115.c iio: Add Freescale MPL115A2 pressure / temperature sensor driver 2014-05-03 11:31:36 +01:00
mpl3115.c iio: Fix two mpl3115 issues in measurement conversion 2014-05-29 17:38:36 +01:00
st_pressure.h iio:pressure: Add support for LPS25H pressure sensor 2014-02-22 13:09:53 +00:00
st_pressure_buffer.c iio:st_pressure: Remove redundant call to iio_sw_buffer_preenable(). 2013-10-16 19:13:56 +01:00
st_pressure_core.c iio:st_sensors: Fix oops when probing SPI devices 2015-05-28 09:59:58 +01:00
st_pressure_i2c.c iio:pressure: Add support for LPS25H pressure sensor 2014-02-22 13:09:53 +00:00
st_pressure_spi.c iio:pressure: Add support for LPS25H pressure sensor 2014-02-22 13:09:53 +00:00