git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
This commit was manufactured by cvs2svn to create tag
[linux-2.6.git]
/
arch
/
sh
/
mm
/
hugetlbpage.c
diff --git
a/arch/sh/mm/hugetlbpage.c
b/arch/sh/mm/hugetlbpage.c
index
5309f67
..
4d5d687
100644
(file)
--- a/
arch/sh/mm/hugetlbpage.c
+++ b/
arch/sh/mm/hugetlbpage.c
@@
-248,8
+248,9
@@
int hugetlb_prefault(struct address_space *mapping, struct vm_area_struct *vma)
goto out;
}
ret = add_to_page_cache(page, mapping, idx, GFP_ATOMIC);
- unlock_page(page);
- if (ret) {
+ if (! ret) {
+ unlock_page(page);
+ } else {
hugetlb_put_quota(mapping);
free_huge_page(page);
goto out;