summaryrefslogtreecommitdiff
path: root/kernel/debug/debug_core.h
diff options
context:
space:
mode:
authorChangyul Lee <lcy8047@gmail.com>2026-11-06 12:47:37 -0500
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-11-11 02:53:02 +0000
commitd32bf759801e6df23038dc834622a122ec76a4dd (patch)
treefd294a2cfc7601245f97f329ba3e947cb627e333 /kernel/debug/debug_core.h
parentfd4c92bbd3a64556e81042ff8d30545b15a3b93a (diff)
iio: trigger: free the trigger ID after device_del()
iio_trigger_unregister() returns the trigger ID to iio_trigger_ida before device_del() removes the "trigger<N>" device. A trigger registered in between can get the same ID, and its device_add() fails: sysfs: cannot create duplicate filename '/bus/iio/devices/trigger0' For example, adding a sysfs trigger while an hrtimer trigger is being removed through configfs, or the other way around, hits this because the two paths do not share a lock. Free the ID after device_del(), as the error path of iio_trigger_register() already does, and drop the "Possible issue in here" comment. Fixes: 1637db44413e ("Staging: IIO: Trigger support added to core.") Signed-off-by: Changyul Lee <lcy8047@gmail.com> Cc: stable@vger.kernel.org Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'kernel/debug/debug_core.h')
0 files changed, 0 insertions, 0 deletions