aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2020-11-13 10:49:29 +0000
committerPeter Maydell <peter.maydell@linaro.org>2020-11-13 10:49:29 +0000
commitb0f8c22d6d4d07f3bd2307bcc62e1660ef965472 (patch)
tree48758af04048e734de0a97ea34432147f326eb0e
parent4cfac0152e798f9c60472706c0441501da13183c (diff)
parente408aeef8663fd6e3075aef252404c55d710a75e (diff)
downloadqemu-b0f8c22d6d4d07f3bd2307bcc62e1660ef965472.zip
qemu-b0f8c22d6d4d07f3bd2307bcc62e1660ef965472.tar.gz
qemu-b0f8c22d6d4d07f3bd2307bcc62e1660ef965472.tar.bz2
Merge remote-tracking branch 'remotes/awilliam/tags/vfio-update-20201112.0' into staging
VFIO update 2020-11-12 * Fix coverity reported use-after-free (Kirti Wankhede) # gpg: Signature made Thu 12 Nov 2020 23:00:13 GMT # gpg: using RSA key 239B9B6E3BB08B22 # gpg: Good signature from "Alex Williamson <alex.williamson@redhat.com>" [full] # gpg: aka "Alex Williamson <alex@shazbot.org>" [full] # gpg: aka "Alex Williamson <alwillia@redhat.com>" [full] # gpg: aka "Alex Williamson <alex.l.williamson@gmail.com>" [full] # Primary key fingerprint: 42F6 C04E 540B D1A9 9E7B 8A90 239B 9B6E 3BB0 8B22 * remotes/awilliam/tags/vfio-update-20201112.0: Fix use after free in vfio_migration_probe Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--hw/vfio/migration.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/vfio/migration.c b/hw/vfio/migration.c
index 3ce285e..5526156 100644
--- a/hw/vfio/migration.c
+++ b/hw/vfio/migration.c
@@ -897,8 +897,8 @@ int vfio_migration_probe(VFIODevice *vbasedev, Error **errp)
goto add_blocker;
}
- g_free(info);
trace_vfio_migration_probe(vbasedev->name, info->index);
+ g_free(info);
return 0;
add_blocker: