~ubuntu-branches/debian/experimental/linux-tools/experimental

« back to all changes in this revision

Viewing changes to arch/parisc/include/asm/pgalloc.h

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-02-02 16:57:49 UTC
  • mfrom: (1.1.10) (0.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20140202165749-tw94o9t1t0a8txk6
Tags: 3.13-1~exp2
Merge changes from sid up to 3.12.6-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
pte_alloc_one(struct mm_struct *mm, unsigned long address)
122
122
{
123
123
        struct page *page = alloc_page(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO);
124
 
        if (page)
125
 
                pgtable_page_ctor(page);
 
124
        if (!page)
 
125
                return NULL;
 
126
        if (!pgtable_page_ctor(page)) {
 
127
                __free_page(page);
 
128
                return NULL;
 
129
        }
126
130
        return page;
127
131
}
128
132