diff options
author | Asias He <asias@redhat.com> | 2013-06-20 17:20:33 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-23 23:51:48 -0700 |
commit | a49dd9dcb50195b35a5e59eb65b8e56584874630 (patch) | |
tree | e10f8f64fc4b4d90c0c7c1d5507890f1b87f3e86 /kernel/hung_task.c | |
parent | 0fc932467688e1c81fc109a93f323cef4993dc24 (diff) | |
download | op-kernel-dev-a49dd9dcb50195b35a5e59eb65b8e56584874630.zip op-kernel-dev-a49dd9dcb50195b35a5e59eb65b8e56584874630.tar.gz |
VSOCK: Fix VSOCK_HASH and VSOCK_CONN_HASH
If we mod with VSOCK_HASH_SIZE -1, we get 0, 1, .... 249. Actually, we
have vsock_bind_table[0 ... 250] and vsock_connected_table[0 .. 250].
In this case the last entry will never be used.
We should mod with VSOCK_HASH_SIZE instead.
Signed-off-by: Asias He <asias@redhat.com>
Acked-by: Andy King <acking@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/hung_task.c')
0 files changed, 0 insertions, 0 deletions