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

Commit f6f9180d authored by Lynus Vaz's avatar Lynus Vaz Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Deal with a NULL pointer when creating default pagetable



Return an appropriate error code if the default pagetable is NULL.

Change-Id: Ic88b066c40a8f840d95fd3fbc9ee9274c428b66a
Signed-off-by: default avatarLynus Vaz <lvaz@codeaurora.org>
parent 1d4c367d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1497,6 +1497,8 @@ static int _setup_user_context(struct kgsl_mmu *mmu)
			ret = PTR_ERR(mmu->defaultpagetable);
			mmu->defaultpagetable = NULL;
			return ret;
		} else if (mmu->defaultpagetable == NULL) {
			return -ENOMEM;
		}
	}