summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorGuangshuo Li <lgs201920130244@gmail.com>2026-09-14 14:28:09 +0800
committerGuenter Roeck <linux@roeck-us.net>2026-09-14 08:30:01 -0700
commit0ff9c7775e51ac6d47b1bb5c46f06b1434fe58a8 (patch)
treeaf72965061901c8e3522721e362cca0c0ea67052 /tools/perf/scripts/python/bin/stackcollapse-report
parentbdf5f731957de48acada392f28e82bc019713adb (diff)
downloadlinux-next-0ff9c7775e51ac6d47b1bb5c46f06b1434fe58a8.tar.gz
linux-next-0ff9c7775e51ac6d47b1bb5c46f06b1434fe58a8.zip
hwmon: (w83791d) remove fan/pwm 4-5 sysfs group on remove
When the fan/pwm 4-5 pins are not used as GPIO, w83791d_probe() creates the w83791d_group_fanpwm45 sysfs group on the I2C client device. The probe error path removes this group when a later initialization step fails, but the normal remove path only removes w83791d_group. As a result, the optional fan/pwm 4-5 sysfs files can remain after the driver is unbound. The callbacks associated with these files access the driver data, which is devm allocated and released after driver unbind. Leaving the sysfs files behind can therefore result in accesses to stale driver data. Remove w83791d_group_fanpwm45 during normal teardown as well. This issue was found by manual code inspection. Fixes: 6e1ecd9b8f13 ("hwmon: (w83791d) fan 4/5 pins can also be used for gpio") Cc: stable@vger.kernel.org Signed-off-by: Guangshuo Li <lgs201920130244@gmail.com> Link: https://patch.msgid.link/20260914062809.1650538-1-lgs201920130244@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions