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

Commit 515ac74e authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "clk: qcom: Fix null pointer exception"

parents 9bf70038 3e6f31c5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -580,6 +580,9 @@ static int __clk_rcg2_set_rate(struct clk_hw *hw, unsigned long rate)
			rcg->curr_index = 0;
		else {
			f = qcom_find_freq(rcg->freq_tbl, rcg->current_freq);
			if (!f)
				return -EINVAL;

			rcg->curr_index = qcom_find_src_index(hw,
						rcg->parent_map, f->src);