linux/drivers/iio/gyro
Arka Mondal 2b498df75d iio: gyro: adis16136: fix unprotected debugfs reads
The serial_number file operations are open coded and never call
debugfs_file_get(), which debugfs_create_file_unsafe() requires.
debugfs_remove_recursive() therefore does not wait for a read in
progress, and unbind frees the iio_dev underneath it.

Use debugfs_create_file() instead.

Fixes: 9aaea09b4c ("gyro:adis16136: fix debugfs_simple_attr.cocci warnings")
Signed-off-by: Arka Mondal <arkamondalofficial@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
History 2026-08-31 00:52:42 +01:00
..
adis16080.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +01:00
adis16130.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
adis16136.c iio: gyro: adis16136: fix unprotected debugfs reads 2026-08-31 00:52:42 +01:00
adis16260.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +01:00
adxrs290.c iio: gyro: adxrs290: Remove redundant dev_err_probe() 2026-07-27 22:13:07 +01:00
adxrs450.c iio: Initialize spi_device_id arrays using member names 2026-06-30 00:15:56 +01:00
bmg160.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
bmg160_core.c iio: gyro: bmg160: wait full startup time after mode change at probe 2026-05-16 11:48:38 +01:00
bmg160_i2c.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
bmg160_spi.c iio: Drop unused assignment of spi_device_id driver data 2026-06-30 00:15:56 +01:00
fxas21002c.h iio: gyro: fxas21002c: Move 'fxas21002c_reg_fields' to the only file its used 2020-07-20 09:03:25 +01:00
fxas21002c_core.c iio: gyro: Remove redundant pm_runtime_mark_last_busy() calls 2025-08-25 16:04:47 +01:00
fxas21002c_i2c.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
fxas21002c_spi.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
hid-sensor-gyro-3d.c iio: hid-sensors: align function parenthesis for readability 2026-07-07 03:12:50 +01:00
itg3200_buffer.c iio: gyro: itg3200: fix i2c read into the wrong stack location 2026-05-15 12:05:35 +01:00
itg3200_core.c iio: Initialize i2c_device_id arrays using member names 2026-05-31 11:01:46 +01:00
Kconfig iio: gyro: list adis16137 in Kconfig description 2024-10-21 19:19:24 +01:00
Makefile iio: gyro: Add driver support for ADXRS290 2020-08-22 10:53:20 +01:00
mpu3050-core.c iio: gyro: mpu3050: fix sign of raw angular velocity readings 2026-08-07 23:51:05 +01:00
mpu3050-i2c.c iio: Initialize i2c_device_id arrays using member names 2026-05-31 11:01:46 +01:00
mpu3050.h iio: gyro: mpu3050: Make mpu3050_common_remove() return void 2022-05-01 19:01:13 +01:00
ssp_gyro_sensor.c iio: common: ssp: remove SSP_CHAN_TIMESTAMP() macro 2026-05-31 11:01:46 +01:00
st_gyro.h iio: gyro: st_gyro: use devm_iio_triggered_buffer_setup() for buffer 2021-07-24 16:35:05 +01:00
st_gyro_buffer.c iio:st-sensors: Remove duplicate MODULE_* 2022-02-18 11:36:54 +00:00
st_gyro_core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
st_gyro_i2c.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
st_gyro_spi.c Linux 7.2-rc2 2026-07-06 16:59:47 +01:00