]> git.ipfire.org Git - thirdparty/qemu.git/commit
replace functions which are only available in glib-2.24
authorOlaf Hering <olaf@aepfle.de>
Tue, 15 May 2018 06:31:28 +0000 (08:31 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 18 Jul 2018 16:12:05 +0000 (11:12 -0500)
commit6d3ed3798b0774d9ca03754aba3c7284498933e8
treee86fa01239423bd91ce81ae0953420565d1faf7d
parent58119514f5999a7e2d57f03acabbdff20a854d15
replace functions which are only available in glib-2.24

Currently the minimal supported version of glib is 2.22.
Since testing is done with a glib that claims to be 2.22, but in fact
has APIs from newer version of glib, this bug was not caught during
submit of the patch referenced below.

Replace g_realloc_n, which is available only since 2.24, with g_renew.

Fixes commit 418026ca43 ("util: Introduce vfio helpers")

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
CC: qemu-stable@nongnu.org
(cherry picked from commit d29eb678bcfbb2fbf4b79423797253ee02f5c6cf)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
util/vfio-helpers.c