summaryrefslogtreecommitdiff
path: root/scripts/checkstack.pl
diff options
context:
space:
mode:
authorAlex Hung <alex.hung@amd.com>2026-07-24 13:12:39 -0600
committerAlex Deucher <alexander.deucher@amd.com>2026-08-06 12:44:10 -0400
commit1cdb23735d508c6f3eb70c86fdf2f70d1d395567 (patch)
treeebc895f4055d0f43973d1df6880fd98af2533801 /scripts/checkstack.pl
parentef45aaf73717738ab123ab0350ff59753cce8ff4 (diff)
downloadlinux-1cdb23735d508c6f3eb70c86fdf2f70d1d395567.tar.gz
linux-1cdb23735d508c6f3eb70c86fdf2f70d1d395567.zip
drm/amd/display: Fix more KUnit connector use-after-free bugs
drmm_connector_init() and drmm_encoder_init() register their cleanup (drm_connector_cleanup() / drm_encoder_cleanup()) as DRM-managed actions tied to the drm_device lifetime. When the object memory is owned by KUnit, it is freed before that action runs, so the cleanup touches freed memory. Allocate these objects with drmm_kzalloc() so their lifetime matches the cleanup action. Signed-off-by: Alex Hung <alex.hung@amd.com> Assisted-by: Copilot:Claude-Opus-4.8 Acked-by: Roman Li <roman.li@amd.com> Tested-by: Dan Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'scripts/checkstack.pl')
0 files changed, 0 insertions, 0 deletions