]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: explicitly set rmap_head->val to 0 in pte_list_desc_remove_entry()
authorMiaohe Lin <linmiaohe@huawei.com>
Thu, 5 Dec 2019 03:40:16 +0000 (11:40 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jan 2020 16:33:13 +0000 (17:33 +0100)
commit5d58d7745280c97eca4de04268a3dd3154ed8acb
tree9fbc95f4b57cda60ccda8172a186572f864af5c0
parent2e4a62606dd5de12d1eb0493ea9b42879a33377e
KVM: explicitly set rmap_head->val to 0 in pte_list_desc_remove_entry()

When we reach here, we have desc->sptes[j] = NULL with j = 0.
So we can replace desc->sptes[0] with 0 to make it more clear.
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c