diff options
| author | Nicholas Kazlauskas <[email protected]> | 2021-09-07 13:53:03 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-09-14 19:36:14 +0000 |
| commit | 06dd1888ee58d2529f55916e250f0e272b0b8407 (patch) | |
| tree | 5669c5f36df8fd84fbb1b30eaa3e42f59c64dec3 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
| parent | drm/amd/amdgpu: Enable some sysnodes for guest smi (diff) | |
| download | kernel-06dd1888ee58d2529f55916e250f0e272b0b8407.tar.gz kernel-06dd1888ee58d2529f55916e250f0e272b0b8407.zip | |
drm/amd/display: Add NULL checks for vblank workqueue
[Why]
If we're running a headless config with 0 links then the vblank
workqueue will be NULL - causing a NULL pointer exception during
any commit.
[How]
Guard access to the workqueue if it's NULL and don't queue or flush
work if it is.
Reported-by: Mike Lothian <[email protected]>
BugLink: https://gitlab.freedesktop.org/drm/amd/-/issues/1700
Fixes: 58aa1c50e5a231 ("drm/amd/display: Use vblank control events for PSR enable/disable")
Signed-off-by: Nicholas Kazlauskas <[email protected]>
Reviewed-by: Harry Wentland <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions
