drm/amd: fix potential memory leak
authorBernard Zhao <bernard@vivo.com>
Tue, 23 Aug 2022 06:49:56 +0000 (23:49 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Aug 2022 17:35:18 +0000 (13:35 -0400)
commit6160216fd2c97107e8a9ab39863b056d677fcd85
tree5e5125514f3480d1ecbbd7b2a7095ef6e9105375
parent58dcc221068ae93bf7f6bbc2e44612ea07bc6c95
drm/amd: fix potential memory leak

This patch fix potential memory leak (clk_src) when function run
into last return NULL.

s/free/kfree/ - Alex

Signed-off-by: Bernard Zhao <bernard@vivo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c