mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
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: Zhenhua Huang <zhenhuah@codeaurora.org>
This commit is contained in:
parent
b7903c2301
commit
4cf5d25bce
1 changed files with 1 additions and 1 deletions
2
mm/cma.c
2
mm/cma.c
|
|
@ -550,7 +550,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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue