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

Commit 46151f54 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

msm: kgsl: Return an error for failure in _cmdbatch_create_legacy



Callers of _cmdbatch_create_legacy expect an error to be returned in
the style of ERR_PTR.  Fix an error path wherein NULL was returned
instead.

Change-Id: Ic0dedbadcbc73f6320869c44df9599d754cd139a
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 200a040b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2154,7 +2154,7 @@ static struct kgsl_cmdbatch *_kgsl_cmdbatch_create_legacy(
	mem = kmem_cache_alloc(memobjs_cache, GFP_KERNEL);
	if (mem == NULL) {
		kgsl_cmdbatch_destroy(cmdbatch);
		return NULL;
		return ERR_PTR(-ENOMEM);
	}

	mem->gpuaddr = param->ibdesc_addr;