Commit d200a643 authored by Bernard Zhao's avatar Bernard Zhao Committed by Alex Deucher

drm/amd: fix potential memory leak

This patch fix potential memory leak (clk_src) when function run
into last return NULL.
Signed-off-by: default avatarBernard Zhao <bernard@vivo.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 6160216f
......@@ -1643,6 +1643,7 @@ static struct clock_source *dcn31_clock_source_create(
}
BREAK_TO_DEBUGGER();
kfree(clk_src);
return NULL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment