]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - arch/s390/mm/gmap.c
lib: radix-tree: check accounting of existing slot replacement users
[mirror_ubuntu-artful-kernel.git] / arch / s390 / mm / gmap.c
index 3ba622702ce47cd2a908150f6b37e2801be47557..ec1f0dedb948df0766a4849bd429f0fb70eece27 100644 (file)
@@ -1015,7 +1015,7 @@ static inline void gmap_insert_rmap(struct gmap *sg, unsigned long vmaddr,
        if (slot) {
                rmap->next = radix_tree_deref_slot_protected(slot,
                                                        &sg->guest_table_lock);
-               radix_tree_replace_slot(slot, rmap);
+               radix_tree_replace_slot(&sg->host_to_rmap, slot, rmap);
        } else {
                rmap->next = NULL;
                radix_tree_insert(&sg->host_to_rmap, vmaddr >> PAGE_SHIFT,