Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74614
b: refs/heads/master
c: 294a80a
h: refs/heads/master
v: v3
  • Loading branch information
Vegard Nossum authored and Linus Torvalds committed Dec 5, 2007
1 parent f556171 commit e79bbef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 5a622f2d0f86b316b07b55a4866ecb5518dd1cf7
refs/heads/master: 294a80a8ed004b383ab214837e1c05ca4098a717
6 changes: 5 additions & 1 deletion trunk/mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -2558,8 +2558,12 @@ size_t ksize(const void *object)
if (unlikely(object == ZERO_SIZE_PTR))
return 0;

page = get_object_page(object);
page = virt_to_head_page(object);
BUG_ON(!page);

if (unlikely(!PageSlab(page)))
return PAGE_SIZE << compound_order(page);

s = page->slab;
BUG_ON(!s);

Expand Down

0 comments on commit e79bbef

Please sign in to comment.