]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/vhost/vsock.c
vhost/vsock: fix vhost vsock cid hashing inconsistent
[linux.git] / drivers / vhost / vsock.c
index bc42d38ae031102615662afb68d06c80a86bd063..3fbc068eaa9b6c7745562a6a48560dc44104fd6f 100644 (file)
@@ -642,7 +642,7 @@ static int vhost_vsock_set_cid(struct vhost_vsock *vsock, u64 guest_cid)
                hash_del_rcu(&vsock->hash);
 
        vsock->guest_cid = guest_cid;
-       hash_add_rcu(vhost_vsock_hash, &vsock->hash, guest_cid);
+       hash_add_rcu(vhost_vsock_hash, &vsock->hash, vsock->guest_cid);
        mutex_unlock(&vhost_vsock_mutex);
 
        return 0;