hw/xen/xen-hvm-common: Use g_new and error_report
authorVikram Garhwal <vikram.garhwal@amd.com>
Thu, 15 Jun 2023 00:03:35 +0000 (17:03 -0700)
committerStefano Stabellini <stefano.stabellini@amd.com>
Thu, 15 Jun 2023 23:46:28 +0000 (16:46 -0700)
commit6c4193ed1690ab140a94d8288dcd41237504e7d2
treee12c4508dc40b72cc7845d87fec2e5133353ed13
parent5ff5c8da948895ceb6ce42408e974488d08ba2d3
hw/xen/xen-hvm-common: Use g_new and error_report

Replace g_malloc with g_new and perror with error_report.

Signed-off-by: Vikram Garhwal <vikram.garhwal@amd.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Paul Durrant <paul@xen.org>
hw/xen/xen-hvm-common.c