OSDN Git Service

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

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

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