diff options
| author | Alex Hung <alex.hung@amd.com> | 2026-08-29 13:38:18 -0600 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-09-17 11:38:24 -0400 |
| commit | 9e7ed95bfdd9f7a1b7d1f2b7cb5a81ce05b66876 (patch) | |
| tree | efbfc3e8dea099e33c5c0d5ef38568ef6b0c05d5 /tools/lib/python/kdoc/python_version.py | |
| parent | 80065ab5bcf2546669113060a5ce51402784323f (diff) | |
drm/amd/display: Test modifier list growth failure
[WHAT]
Add a KUnit test for amdgpu_dm_plane_add_modifier() covering the
allocation failure that happens while growing the modifier list.
[HOW]
Seed a capacity whose doubling overflows the kmalloc_array() size
product, so the allocation fails without fault injection, and assert
the list is released and cleared for the caller.
Assisted-by: Copilot:Claude-Opus-5
Reviewed-by: Bhawanpreet Lakha <bhawanpreet.lakha@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Chenyu Chen <chen-yu.chen@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
