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

Commit 3a13bcac authored by Sunil Khatri's avatar Sunil Khatri
Browse files

msm: kgsl: Fix premature return from power initialization



Fix premature return from KGSL power initialization
code and avoid uninitialized pointer dereference.

CRs-Fixed: 789153
Change-Id: I94d34eb7e5dd09849ce0c3885336878dd3466e01
Signed-off-by: default avatarSunil Khatri <sunilkh@codeaurora.org>
parent 93a10a8b
Loading
Loading
Loading
Loading
+8 −11
Original line number Diff line number Diff line
@@ -1450,7 +1450,6 @@ int kgsl_pwrctrl_init(struct kgsl_device *device)
		 * is not enabled and gpu bus voting is to be done
		 * from the driver.
		 */
		if (pdata->bus_scale_table) {
		pwr->pcl = msm_bus_scale_register_client
				(pdata->bus_scale_table);
		if (!pwr->pcl) {
@@ -1461,8 +1460,6 @@ int kgsl_pwrctrl_init(struct kgsl_device *device)
			goto done;
		}
	}
		return result;
	}

	/*
	 * Set the range permitted for BIMC votes per-GPU frequency.