On Mon, Oct 5, 2015 at 4:32 AM, Harmandeep Kaur <write.harmand...@gmail.com> wrote: > Convert malloc()/calloc() calls to g_malloc()/g_try_malloc()/g_new0() > in linux-user/syscall.c file > > Signed-off-by: Harmandeep Kaur <write.harmand...@gmail.com> > --- > v1->v2 convert the free() call in host_to_target_semarray() > to g_free() and calls g_try_malloc(count) instead of > g_try_malloc(sizeof(count)) > > v2->v3 used g_try_new() and friends to avoid overflow issues > > v3->v4 use g_free for unlock_iovec() and host_to_target_semarray(). > > linux-user/syscall.c | 24 ++++++++++++------------ > 1 file changed, 12 insertions(+), 12 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>