summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorArka Mondal <arkamondalofficial@gmail.com>2026-08-16 03:27:24 +0900
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-08-31 00:52:41 +0100
commite1dea54496f90a62318cf4eeaa1e9ef8316e92b6 (patch)
tree66d021ddb5dd1be2d4c9d14cd70204653f7ede7d /tools/lib/python
parent0f3f427076240e75ff265e61645627a71ca4918c (diff)
downloadlinux-next-e1dea54496f90a62318cf4eeaa1e9ef8316e92b6.tar.gz
linux-next-e1dea54496f90a62318cf4eeaa1e9ef8316e92b6.zip
iio: imu: adis16480: fix unprotected debugfs reads
The firmware_revision and firmware_date 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: 9bf94f836e32 ("imu:adis16480: 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>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions