projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca973d8
)
m32r: handle pgtable_page_ctor() fail
author
Kirill A. Shutemov
<
[email protected]
>
Thu, 14 Nov 2013 22:31:33 +0000
(14:31 -0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 15 Nov 2013 00:32:17 +0000
(09:32 +0900)
Signed-off-by: Kirill A. Shutemov <
[email protected]
>
Cc: Hirokazu Takata <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/m32r/include/asm/pgalloc.h
patch
|
blob
|
history
diff --git
a/arch/m32r/include/asm/pgalloc.h
b/arch/m32r/include/asm/pgalloc.h
index ac4208bcc5ad6d5f05ed75474db11035854de388..2d55a064ccac5ac335e339ce649cf210804842fd 100644
(file)
--- a/
arch/m32r/include/asm/pgalloc.h
+++ b/
arch/m32r/include/asm/pgalloc.h
@@
-45,7
+45,10
@@
static __inline__ pgtable_t pte_alloc_one(struct mm_struct *mm,
if (!pte)
return NULL;
- pgtable_page_ctor(pte);
+ if (!pgtable_page_ctor(pte)) {
+ __free_page(pte);
+ return NULL;
+ }
return pte;
}