Skip to content
Browse files

memslot: Fix a bug of memslot_move()

Invoking memslot_init() in memslot_move() will result in losing the
linked list information of the original memory slot node. Reimplement
memslot_move() to resolve some exceptional issues during mapping memory

Signed-off-by: leecher1337 <>
  • Loading branch information...
leecher1337 committed Aug 28, 2019
1 parent 3c85766 commit e1e9c97ac8426e10953e193f17506ad4c49357bc
Showing with 3 additions and 1 deletion.
  1. +3 −1 core/memslot.c
@@ -380,7 +380,9 @@ static inline void memslot_delete(hax_memslot *dest)
static inline void memslot_move(hax_memslot *dest, hax_memslot *src)
memslot_init(dest, src);
src->entry = dest->entry;
*dest = *src;

static inline void memslot_union(hax_memslot *dest, hax_memslot *src)

0 comments on commit e1e9c97

Please sign in to comment.
You can’t perform that action at this time.