summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorZhixing Chen <running910@gmail.com>2026-08-13 18:07:11 +0800
committerJakub Kicinski <kuba@kernel.org>2026-08-17 10:29:58 -0700
commit3f33a2d2ea928d6e657dd11e2ac8a3d01785f5e2 (patch)
tree286e933d7c5087784ee1f896def552b9ec44bc34 /tools/perf/scripts/python/netdev-times.py
parent936c0870c44d17a51c672d0c6dc08299ead0b391 (diff)
r8169: keep LED device name valid after setup
rtl8168_setup_ldev() and rtl8125_setup_led_ldev() build the LED device name in a stack buffer and assign it to led_cdev->name. The LED class device registration path reads led_cdev->name after it has been assigned, and struct led_classdev stores the name as part of the LED class device state. Do not keep a pointer to a setup function's stack buffer there. Store the name in struct r8169_led_classdev instead, so it remains valid for the lifetime of the LED class device. Signed-off-by: Zhixing Chen <running910@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://patch.msgid.link/20260813100711.14724-1-running910@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions