summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorRafael Passos <rafael@rcpassos.me>2026-06-02 00:05:19 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-06-19 13:50:58 +0200
commitb15b03d6913a4bd05b394bdd6271d5ed471cbb3a (patch)
tree1fb717b08e817c9518d17dd5a9919bab855f673d /tools/perf/scripts/python/stackcollapse.py
parentfc10eff5a2a8b600448096a34ffbb21586bac88c (diff)
downloadlinux-b15b03d6913a4bd05b394bdd6271d5ed471cbb3a.tar.gz
linux-b15b03d6913a4bd05b394bdd6271d5ed471cbb3a.tar.bz2
linux-b15b03d6913a4bd05b394bdd6271d5ed471cbb3a.zip
HID: Input: Add battery list cleanup with devm action
commit 426e5846eba75feaf1c9c6c119cb153610192da1 upstream. The batteries list (hdev->batteries) is not cleaned up during hidinput_disconnect(), but struct hid_battery entries are allocated with devm_kzalloc. When a driver is unbound (e.g. during devicereprobe), devm frees those entries while their list_head nodesremain dangling in hdev->batteries, which persists across rebinds. Link: https://lore.kernel.org/all/20260602011949.2825852-1-rafael@rcpassos.me/ Fixes: 4a58ae85c3f9 ("HID: input: Add support for multiple batteries per device") Signed-off-by: Rafael Passos <rafael@rcpassos.me> Acked-by: Lucas Zampieri <lcasmz54@gmail.com> Signed-off-by: Benjamin Tissoires <bentiss@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions