projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mm: cma: Don't crash on allocation if CMA area can't be activated
[cascardo/linux.git]
/
mm
/
cma.c
diff --git
a/mm/cma.c
b/mm/cma.c
index
963bc4a
..
5aa1a6f
100644
(file)
--- a/
mm/cma.c
+++ b/
mm/cma.c
@@
-124,6
+124,7
@@
static int __init cma_activate_area(struct cma *cma)
err:
kfree(cma->bitmap);
+ cma->count = 0;
return -EINVAL;
}