]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - drivers/vhost/vsock.c
vhost/vsock: fix vhost vsock cid hashing inconsistent
[thirdparty/kernel/stable.git] / drivers / vhost / vsock.c
index fa93f6711d8d3b06e76c8be495832d922162f4de..e440f87ae1d60630ae195d23e6d0b2fac67cbd05 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);
        spin_unlock_bh(&vhost_vsock_lock);
 
        return 0;