summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
diff options
context:
space:
mode:
authorJosé Expósito <jose.exposito89@gmail.com>2022-01-09 21:42:45 +0300
committerAlex Deucher <alexander.deucher@amd.com>2022-01-11 23:44:27 +0300
commit978ffac878fd64039f95798b15b430032d2d89d5 (patch)
tree951ec7a7cf2a42126531bf6ae09891998d69803e /drivers/gpu/drm/amd/amdkfd/kfd_crat.c
parent8b5da5a458c95ad49571a6a6285800bf13409616 (diff)
downloadlinux-978ffac878fd64039f95798b15b430032d2d89d5.tar.xz
drm/amd/display: invalid parameter check in dmub_hpd_callback
The function performs a check on the "adev" input parameter, however, it is used before the check. Initialize the "dev" variable after the sanity check to avoid a possible NULL pointer dereference. Fixes: e27c41d5b0681 ("drm/amd/display: Support for DMUB HPD interrupt handling") Addresses-Coverity-ID: 1493909 ("Null pointer dereference") Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_crat.c')
0 files changed, 0 insertions, 0 deletions