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

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

Merge "clk: qcom: rcg2: Fix possible null pointer dereference"

parents 15675b06 be6b935c
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1472,7 +1472,11 @@ static int clk_gfx3d_src_determine_rate(struct clk_hw *hw,
	}

	f = qcom_find_freq(rcg->freq_tbl, req->rate);
	if (!f || (req->rate != f->freq))

	if (!f)
		return -EINVAL;

	if (req->rate != f->freq)
		req->rate = f->freq;

	/* Indexes of source from the parent map */