On Thu, 2015-12-03 at 16:45 +0000, Frediano Ziglio wrote: > Signed-off-by: Marc-André Lureau <marcandre.lureau@xxxxxxxxx> > Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> > --- > server/red_memslots.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/server/red_memslots.c b/server/red_memslots.c > index 2fd939e..e883c54 100644 > --- a/server/red_memslots.c > +++ b/server/red_memslots.c > @@ -168,8 +168,8 @@ void memslot_info_add_slot(RedMemSlotInfo *info, uint32_t > slot_group_id, uint32_ > > void memslot_info_del_slot(RedMemSlotInfo *info, uint32_t slot_group_id, > uint32_t slot_id) > { > - spice_assert(info->num_memslots_groups > slot_group_id); > - spice_assert(info->num_memslots > slot_id); > + spice_return_if_fail(info->num_memslots_groups > slot_group_id); > + spice_return_if_fail(info->num_memslots > slot_id); > > info->mem_slots[slot_group_id][slot_id].virt_start_addr = 0; > info->mem_slots[slot_group_id][slot_id].virt_end_addr = 0; Acked-by: Jonathon Jongsma <jjongsma@xxxxxxxxxx> _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel