Revert "ANDROID: mm/cma: Return the present value of 'page' in the failure cases"

This reverts commit 4fc295812a.

It causes merge issues with tag 'drm-next-2025-04-05' and can be
reapplied later if really needed.

Change-Id: Ie32540328d0a06e1e036cf2a5c1ac16a1ac0aed0
Signed-off-by: Carlos Llamas <cmllamas@google.com>
This commit is contained in:
Carlos Llamas committed 2025-04-21 14:44:08 +00:00
1 parent 3fdac9437a
commit 9040fe5eaf
1 file changed
+1 -1
+1 -1
View File
@@ -431,7 +431,7 @@ struct page *__cma_alloc(struct cma *cma, unsigned long count,
if (WARN_ON_ONCE((gfp & GFP_KERNEL) == 0 ||
(gfp & ~(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY)) != 0))
return page;
goto out;
trace_cma_alloc_start(name, count, align);