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

Commit ce84375c authored by Veera Sundaram Sankaran's avatar Veera Sundaram Sankaran Committed by Narendra Muppalla
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 f5f1dcd7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -451,7 +451,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;
	}