Searched hist:a49dd9dc (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/net/vmw_vsock/ |
H A D | af_vsock.c | a49dd9dc Thu Jun 20 04:20:33 CDT 2013 Asias He <asias@redhat.com> 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>
|