Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61772
b: refs/heads/master
c: ff86303
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Jul 19, 2007
1 parent 4f35dd7 commit b41e212
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 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: e436d80085133858bf2613a630365e8a0459fd58
refs/heads/master: ff86303e3021587c49a14df1bc54fe2d393e2223
2 changes: 1 addition & 1 deletion trunk/include/linux/user_namespace.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ static inline struct user_namespace *copy_user_ns(int flags,
if (flags & CLONE_NEWUSER)
return ERR_PTR(-EINVAL);

return NULL;
return old_ns;
}

static inline void put_user_ns(struct user_namespace *ns)
Expand Down
4 changes: 2 additions & 2 deletions trunk/mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -3690,8 +3690,8 @@ static __always_inline void *__do_kmalloc(size_t size, gfp_t flags,
* functions.
*/
cachep = __find_general_cachep(size, flags);
if (unlikely(cachep == NULL))
return NULL;
if (unlikely(ZERO_OR_NULL_PTR(cachep)))
return cachep;
return __cache_alloc(cachep, flags, caller);
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -2394,7 +2394,7 @@ size_t ksize(const void *object)
struct page *page;
struct kmem_cache *s;

if (object == ZERO_SIZE_PTR)
if (ZERO_OR_NULL_PTR(object))
return 0;

page = get_object_page(object);
Expand Down

0 comments on commit b41e212

Please sign in to comment.