Unverified Commit 09cd9828 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!15372 xtensa: Fix refcount leak bug in time.c

parents b862ad3f fbc1400d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -146,6 +146,7 @@ static void __init calibrate_ccount(void)
	cpu = of_find_compatible_node(NULL, NULL, "cdns,xtensa-cpu");
	if (cpu) {
		clk = of_clk_get(cpu, 0);
		of_node_put(cpu);
		if (!IS_ERR(clk)) {
			ccount_freq = clk_get_rate(clk);
			return;