Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 94057
b: refs/heads/master
c: 4016a13
h: refs/heads/master
i:
  94055: a886779
v: v3
  • Loading branch information
Michael Hennerich authored and Linus Torvalds committed Apr 28, 2008
1 parent 36d994b commit 12af452
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: 468fd62ed9090ccbe872489df5d0d099510df4b5
refs/heads/master: 4016a1390d07f15b267eecb20e76a48fd5c524ef
6 changes: 5 additions & 1 deletion trunk/mm/nommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ unsigned int kobjsize(const void *objp)
{
struct page *page;

if (!objp || !((page = virt_to_page(objp))))
/*
* If the object we have should not have ksize performed on it,
* return size of 0
*/
if (!objp || (unsigned long)objp >= memory_end || !((page = virt_to_page(objp))))
return 0;

if (PageSlab(page))
Expand Down

0 comments on commit 12af452

Please sign in to comment.