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

Commit f11c8e49 authored by Veera Sundaram Sankaran's avatar Veera Sundaram Sankaran Committed by Matt Wagantall
Browse files

clk: mdss-edp-pll: Fix possible null dereference



Fixed null dereferencing in mdss clk

Change-Id: I786fdc04ca605ccbf2dda5565968bee08ce031e5
Signed-off-by: default avatarVeera Sundaram Sankaran <veeras@codeaurora.org>
parent 9cf347d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -452,7 +452,7 @@ static unsigned long edp_mainlink_get_rate(struct clk *c)

	pclk = clk_get_parent(c);

	if (pclk->ops->get_rate) {
	if (pclk && pclk->ops->get_rate) {
		rate = pclk->ops->get_rate(pclk);
		rate /= mclk->data.div;
	}