mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-16 17:26:28 +00:00
The VC4 mock helpers allocate the CRTC, encoders and connectors using a
call to kunit_kzalloc(), but the DRM device they are attache to survives
for longer than the test itself which leads to use-after-frees reported
by KASAN.
Switch to drmm_kzalloc to tie the lifetime of these objects to the main
DRM device.
Fixes:
|
||
|---|---|---|
| .. | ||
| .kunitconfig | ||
| vc4_mock_crtc.c | ||
| vc4_mock_output.c | ||
| vc4_mock_plane.c | ||
| vc4_mock.c | ||
| vc4_mock.h | ||
| vc4_test_pv_muxing.c | ||