X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=cpus-common.c;h=db459b41ce20ac0ff2f69b8acabdb3816a97c6ad;hb=4d5738222ff0a7f4d56fd4a2971b0605726a8fb2;hp=83475efff7efae4712e51e54ffec5660b84d4b24;hpb=d73415a315471ac0b127ed3fad45c8ec5d711de1;p=mirror_qemu.git diff --git a/cpus-common.c b/cpus-common.c index 83475efff7..db459b41ce 100644 --- a/cpus-common.c +++ b/cpus-common.c @@ -6,7 +6,7 @@ * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. + * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -160,7 +160,7 @@ void async_run_on_cpu(CPUState *cpu, run_on_cpu_func func, run_on_cpu_data data) { struct qemu_work_item *wi; - wi = g_malloc0(sizeof(struct qemu_work_item)); + wi = g_new0(struct qemu_work_item, 1); wi->func = func; wi->data = data; wi->free = true; @@ -305,7 +305,7 @@ void async_safe_run_on_cpu(CPUState *cpu, run_on_cpu_func func, { struct qemu_work_item *wi; - wi = g_malloc0(sizeof(struct qemu_work_item)); + wi = g_new0(struct qemu_work_item, 1); wi->func = func; wi->data = data; wi->free = true;