]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/gpu/drm/amd/display/dc/core/dc_resource.c
drm/amd/display: fix use of uninitialized variable
authorMartin Leung <martin.leung@amd.com>
Tue, 3 Sep 2019 19:22:30 +0000 (15:22 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Oct 2019 14:10:57 +0000 (09:10 -0500)
commit08b662793b90fc3a7e1d84d0fe0a5c04112731fd
tree0fe990f7efd21d83b0176305f1e543c2c04a5e63
parent0fc3ba1c53bcc739ef2746f2fb3e82bb5f7a69f5
drm/amd/display: fix use of uninitialized variable

tg_inst may be used uninitialized, so initialize it to 0.

Signed-off-by: Martin Leung <martin.leung@amd.com>
Reviewed-by: Jaehyun Chung <Jaehyun.Chung@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/core/dc_resource.c