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

Commit 2da64fcc authored by Sandeep Panda's avatar Sandeep Panda Committed by Gerrit - the friendly Code Review server
Browse files

clk: qcom: mdss: fix possible NULL pointer dereference



This change fixes a possible NULL Pointer dereference issue
in DSI 7nm PLL driver.

Change-Id: I5559508737b42bc5b8cda7de5002431143d92b0f
Signed-off-by: default avatarSandeep Panda <spanda@codeaurora.org>
parent 6464c0fa
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.