diff options
| author | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2026-11-09 11:59:48 -0800 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2026-11-20 14:59:23 +0100 |
| commit | c6ebe27e3ba09edf956139c741b38e8432be3f67 (patch) | |
| tree | a547909962ec5af3662aa111817ee55b2585595c /tools/perf/scripts/python/flamegraph.py | |
| parent | fecb7895fbb1b7891e81a033f0dd1f5f7876dc07 (diff) | |
HID: sensor: custom: Register enable attribute after misc device
Register the enable_sensor sysfs group only after misc-device setup
succeeds. This prevents userspace from opening the sensor hub while
probe can still fail, which would otherwise leave the hub open reference
unbalanced on unwind.
Fixes: 4a7de0519df5 ("HID: sensor: Custom and Generic sensor support")
Reported-by: Semyon Maryasin <simeon@maryasin.name>
Closes: https://lore.kernel.org/all/CAM2dg7ewfVJSP4rFyhkCB1Rmd1+X56sAg=eUdbPthG2xrLqwQQ@mail.gmail.com/
Tested-by: Semyon Maryasin <simeon@maryasin.name>
Tested-by: Zhang Lixu <lixu.zhang@intel.com>
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
