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

Commit cddd337a authored by Zhenhua Huang's avatar Zhenhua Huang
Browse files

mm: cma: Print correct request pages



In case of cma allocation failure, req-size is logged, but instead of
requested size we are printing total size. Fix it.

Fixes: 45422bc880 ("mm: cma: Print region name on failure")
Change-Id: Ifc96209a0ccdb295fbb9767d3d93b3a567fa16fd
Signed-off-by: default avatarZhenhua Huang <zhenhuah@codeaurora.org>
parent 9d5ec5ad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -561,7 +561,7 @@ struct page *cma_alloc(struct cma *cma, size_t count, unsigned int align,

	if (ret && !no_warn) {
		pr_err("%s: %s: alloc failed, req-size: %zu pages, ret: %d\n",
			__func__, cma->name, cma->count, ret);
			__func__, cma->name, count, ret);
		cma_debug_show_areas(cma);
	}