diff options
| author | Dan Carpenter <[email protected]> | 2021-01-25 08:45:08 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-01-25 22:48:02 +0000 |
| commit | d3abc78f4fd4b4b45b978ae42b5a9d82ee3b8864 (patch) | |
| tree | 62c686945a6cc721ab4152607052cdddefd333ef /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | drm/amd/display: change license of color_table.c (diff) | |
| download | kernel-d3abc78f4fd4b4b45b978ae42b5a9d82ee3b8864.tar.gz kernel-d3abc78f4fd4b4b45b978ae42b5a9d82ee3b8864.zip | |
drm/amd/display: Fix a potential NULL dereference
The debug printk dereferences "link->link_enc" before we have ensured
that it is non-NULL. Fix this potential NULL derefence by moving the
printk after the check.
Fixes: 64ff0882426e56 ("drm/amd/display: Log link/connector info provided in BIOS object table")
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
