diff options
author | Dave Jones <davej@redhat.com> | 2006-12-12 17:41:41 -0500 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2006-12-12 17:41:41 -0500 |
commit | c4366889dda8110247be59ca41fddb82951a8c26 (patch) | |
tree | 705c1a996bed8fd48ce94ff33ec9fd00f9b94875 /net/unix | |
parent | db2fb9db5735cc532fd4fc55e94b9a3c3750378e (diff) | |
parent | e1036502e5263851259d147771226161e5ccc85a (diff) |
Merge ../linus
Conflicts:
drivers/cpufreq/cpufreq.c
Diffstat (limited to 'net/unix')
-rw-r--r-- | net/unix/af_unix.c | 3 | ||||
-rw-r--r-- | net/unix/garbage.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index b43a27828df5..2f208c7f4d43 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c | |||
@@ -151,8 +151,9 @@ static inline void unix_set_secdata(struct scm_cookie *scm, struct sk_buff *skb) | |||
151 | * each socket state is protected by separate rwlock. | 151 | * each socket state is protected by separate rwlock. |
152 | */ | 152 | */ |
153 | 153 | ||
154 | static inline unsigned unix_hash_fold(unsigned hash) | 154 | static inline unsigned unix_hash_fold(__wsum n) |
155 | { | 155 | { |
156 | unsigned hash = (__force unsigned)n; | ||
156 | hash ^= hash>>16; | 157 | hash ^= hash>>16; |
157 | hash ^= hash>>8; | 158 | hash ^= hash>>8; |
158 | return hash&(UNIX_HASH_SIZE-1); | 159 | return hash&(UNIX_HASH_SIZE-1); |
diff --git a/net/unix/garbage.c b/net/unix/garbage.c index 746c2f4a5fa6..f14ad6635fcc 100644 --- a/net/unix/garbage.c +++ b/net/unix/garbage.c | |||
@@ -96,7 +96,7 @@ atomic_t unix_tot_inflight = ATOMIC_INIT(0); | |||
96 | static struct sock *unix_get_socket(struct file *filp) | 96 | static struct sock *unix_get_socket(struct file *filp) |
97 | { | 97 | { |
98 | struct sock *u_sock = NULL; | 98 | struct sock *u_sock = NULL; |
99 | struct inode *inode = filp->f_dentry->d_inode; | 99 | struct inode *inode = filp->f_path.dentry->d_inode; |
100 | 100 | ||
101 | /* | 101 | /* |
102 | * Socket ? | 102 | * Socket ? |