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

Commit 37b7862b authored by Lokesh Batra's avatar Lokesh Batra
Browse files

msm: kgsl: Initialize pagetable pointer to NULL on declaration



Initialize local pagetable pointer to NULL in the function
kgsl_mem_entry_attach_process(). This avoids GPU page faults in
case GPU address for the memory entry does not exist.

Change-Id: Ibb37f085bc38b025e5c7305e662c5d6d5ab8106c
Signed-off-by: default avatarLokesh Batra <lbatra@codeaurora.org>
parent 77813844
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -389,7 +389,7 @@ kgsl_mem_entry_attach_process(struct kgsl_mem_entry *entry,
	int id;
	int ret;
	struct kgsl_process_private *process = dev_priv->process_priv;
	struct kgsl_pagetable *pagetable;
	struct kgsl_pagetable *pagetable = NULL;

	ret = kgsl_process_private_get(process);
	if (!ret)