Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64057
b: refs/heads/master
c: 5221b34
h: refs/heads/master
i:
  64055: 3807f83
v: v3
  • Loading branch information
Mariusz Kozlowski authored and Haavard Skinnemoen committed Aug 15, 2007
1 parent b55158c commit 0543269
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 54bb69e25016a7b11d83f03feafafdfe2b4d0859
refs/heads/master: 5221b34edfd05ac35c077e071095cf853325320f
8 changes: 1 addition & 7 deletions trunk/include/asm-avr32/pgalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,7 @@ static __inline__ void pmd_populate(struct mm_struct *mm, pmd_t *pmd,
*/
static __inline__ pgd_t *pgd_alloc(struct mm_struct *mm)
{
unsigned int pgd_size = (USER_PTRS_PER_PGD * sizeof(pgd_t));
pgd_t *pgd = kmalloc(pgd_size, GFP_KERNEL);

if (pgd)
memset(pgd, 0, pgd_size);

return pgd;
return kcalloc(USER_PTRS_PER_PGD, sizeof(pgd_t), GFP_KERNEL);
}

static inline void pgd_free(pgd_t *pgd)
Expand Down

0 comments on commit 0543269

Please sign in to comment.