projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-block.git]
/
net
/
core
/
sock.c
diff --git
a/net/core/sock.c
b/net/core/sock.c
index 3e073ca6138fadaa75ff3a948de64ef45746123a..d57b0cc995a0cea45d82bf73d8149aae9f7b2e17 100644
(file)
--- a/
net/core/sock.c
+++ b/
net/core/sock.c
@@
-1597,7
+1597,7
@@
static struct sock *sk_prot_alloc(struct proto *prot, gfp_t priority,
sk = kmem_cache_alloc(slab, priority & ~__GFP_ZERO);
if (!sk)
return sk;
- if (
priority & __GFP_ZERO
)
+ if (
want_init_on_alloc(priority)
)
sk_prot_clear_nulls(sk, prot->obj_size);
} else
sk = kmalloc(prot->obj_size, priority);