]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: fix a missing null check on a failed kzalloc
authorColin Ian King <colin.king@canonical.com>
Tue, 23 Jul 2019 14:23:12 +0000 (15:23 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 31 Jul 2019 04:18:53 +0000 (23:18 -0500)
commit63a6c5526b513f750c67d83ad8697984cbbd3392
tree2f122433a6cb29f501287d68c3519eafa653db04
parent8e7603f9dbb2655d7a57b041108af87d27643637
drm/amd/display: fix a missing null check on a failed kzalloc

Currently the allocation of config may fail and a null pointer
dereference on config can occur.  Fix this by added a null
check on a failed allocation of config.

Addresses-Coverity: ("Dereference null return")
Fixes: 5dc338aaeff4 ("drm/amd/display: Hook up calls to do stereo mux and dig programming to stereo control interface")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c