diff options
Diffstat (limited to 'net/core/sock.c')
-rw-r--r-- | net/core/sock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/core/sock.c b/net/core/sock.c index 239a08a6ff24..bd209c4477a9 100644 --- a/net/core/sock.c +++ b/net/core/sock.c | |||
@@ -1767,7 +1767,7 @@ int proto_register(struct proto *prot, int alloc_slab) | |||
1767 | 1767 | ||
1768 | if (alloc_slab) { | 1768 | if (alloc_slab) { |
1769 | prot->slab = kmem_cache_create(prot->name, prot->obj_size, 0, | 1769 | prot->slab = kmem_cache_create(prot->name, prot->obj_size, 0, |
1770 | SLAB_HWCACHE_ALIGN, NULL, NULL); | 1770 | SLAB_HWCACHE_ALIGN, NULL); |
1771 | 1771 | ||
1772 | if (prot->slab == NULL) { | 1772 | if (prot->slab == NULL) { |
1773 | printk(KERN_CRIT "%s: Can't create sock SLAB cache!\n", | 1773 | printk(KERN_CRIT "%s: Can't create sock SLAB cache!\n", |
@@ -1785,7 +1785,7 @@ int proto_register(struct proto *prot, int alloc_slab) | |||
1785 | sprintf(request_sock_slab_name, mask, prot->name); | 1785 | sprintf(request_sock_slab_name, mask, prot->name); |
1786 | prot->rsk_prot->slab = kmem_cache_create(request_sock_slab_name, | 1786 | prot->rsk_prot->slab = kmem_cache_create(request_sock_slab_name, |
1787 | prot->rsk_prot->obj_size, 0, | 1787 | prot->rsk_prot->obj_size, 0, |
1788 | SLAB_HWCACHE_ALIGN, NULL, NULL); | 1788 | SLAB_HWCACHE_ALIGN, NULL); |
1789 | 1789 | ||
1790 | if (prot->rsk_prot->slab == NULL) { | 1790 | if (prot->rsk_prot->slab == NULL) { |
1791 | printk(KERN_CRIT "%s: Can't create request sock SLAB cache!\n", | 1791 | printk(KERN_CRIT "%s: Can't create request sock SLAB cache!\n", |
@@ -1807,7 +1807,7 @@ int proto_register(struct proto *prot, int alloc_slab) | |||
1807 | kmem_cache_create(timewait_sock_slab_name, | 1807 | kmem_cache_create(timewait_sock_slab_name, |
1808 | prot->twsk_prot->twsk_obj_size, | 1808 | prot->twsk_prot->twsk_obj_size, |
1809 | 0, SLAB_HWCACHE_ALIGN, | 1809 | 0, SLAB_HWCACHE_ALIGN, |
1810 | NULL, NULL); | 1810 | NULL); |
1811 | if (prot->twsk_prot->twsk_slab == NULL) | 1811 | if (prot->twsk_prot->twsk_slab == NULL) |
1812 | goto out_free_timewait_sock_slab_name; | 1812 | goto out_free_timewait_sock_slab_name; |
1813 | } | 1813 | } |