diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-09-24 01:52:47 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-09-24 01:52:47 -0400 |
commit | 23930fa1cebfea6f79881c588ccd1b0781e49e3f (patch) | |
tree | 36d29e3f83661c4f5f45b6f74ac0d5f9886867a8 /net/unix | |
parent | 36b35a5be0e4b406acd816e2122d153e875105be (diff) | |
parent | 4f5537de7c1531398e84e18a24f667e49cc94208 (diff) |
Merge branch 'master' into upstream
Diffstat (limited to 'net/unix')
-rw-r--r-- | net/unix/af_unix.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index de6ec519272e..b43a27828df5 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c | |||
@@ -117,7 +117,7 @@ | |||
117 | #include <net/checksum.h> | 117 | #include <net/checksum.h> |
118 | #include <linux/security.h> | 118 | #include <linux/security.h> |
119 | 119 | ||
120 | int sysctl_unix_max_dgram_qlen = 10; | 120 | int sysctl_unix_max_dgram_qlen __read_mostly = 10; |
121 | 121 | ||
122 | struct hlist_head unix_socket_table[UNIX_HASH_SIZE + 1]; | 122 | struct hlist_head unix_socket_table[UNIX_HASH_SIZE + 1]; |
123 | DEFINE_SPINLOCK(unix_table_lock); | 123 | DEFINE_SPINLOCK(unix_table_lock); |
@@ -2060,10 +2060,7 @@ static int __init af_unix_init(void) | |||
2060 | int rc = -1; | 2060 | int rc = -1; |
2061 | struct sk_buff *dummy_skb; | 2061 | struct sk_buff *dummy_skb; |
2062 | 2062 | ||
2063 | if (sizeof(struct unix_skb_parms) > sizeof(dummy_skb->cb)) { | 2063 | BUILD_BUG_ON(sizeof(struct unix_skb_parms) > sizeof(dummy_skb->cb)); |
2064 | printk(KERN_CRIT "%s: panic\n", __FUNCTION__); | ||
2065 | goto out; | ||
2066 | } | ||
2067 | 2064 | ||
2068 | rc = proto_register(&unix_proto, 1); | 2065 | rc = proto_register(&unix_proto, 1); |
2069 | if (rc != 0) { | 2066 | if (rc != 0) { |