Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2667b3b3 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "clk: qcom: mdss: fix possible NULL pointer dereference"

parents 931b4556 2da64fcc
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1124,8 +1124,10 @@ static unsigned long vco_7nm_recalc_rate(struct clk_hw *hw,
	u32 outdiv;
	u64 pll_freq, tmp64;

	if (!vco->priv)
	if (!vco->priv) {
		pr_err("vco priv is null\n");
		return 0;
	}

	/*
	 * Calculate the vco rate from HW registers only for handoff cases.