Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189671
b: refs/heads/master
c: d3e06e2
h: refs/heads/master
i:
  189669: b2480b6
  189667: 0e767c8
  189663: 24c9ab3
v: v3
  • Loading branch information
Pekka Enberg authored and Linus Torvalds committed Apr 9, 2010
1 parent 47c7e5b commit 1a3df50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fc1c183353a113c71675fecd0485e5aa0fe68d72
refs/heads/master: d3e06e2b15590b70ea73733fc4612e4741ff46e0
3 changes: 3 additions & 0 deletions trunk/mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -2386,6 +2386,9 @@ int kmem_ptr_validate(struct kmem_cache *s, const void *object)
{
struct page *page;

if (!kern_ptr_validate(object, s->size))
return 0;

page = get_object_page(object);

if (!page || s != page->slab)
Expand Down

0 comments on commit 1a3df50

Please sign in to comment.