summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHaoxiang Li <haoxiang_li2024@163.com>2026-07-07 15:15:45 +0800
committerJiri Kosina <jkosina@suse.com>2026-08-14 15:57:27 +0200
commit3789d0802ddb4b3be04062caf4bfadd23496e9a7 (patch)
tree08ef835b2f1b77b0168f493328d40aa3c7c4447b /tools/perf/scripts/python
parentad8fb82b04422f49530d2aa2753cc81d1c60102c (diff)
HID: sensor: custom: Fix field sysfs group cleanup on failure
hid_sensor_custom_add_attributes() creates one sysfs group for each custom sensor field. If sysfs_create_group() fails after some groups have already been created, the function returns the error without removing the previously created groups. Add a local unwind path to remove the groups that were already created. With enable_sensor exposed only after the field attributes are ready, this path can free sensor_inst->fields without leaving enable_sensor able to access pointers into that array. Fixes: 4a7de0519df5 ("HID: sensor: Custom and Generic sensor support") Cc: stable@vger.kernel.org Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com> Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions