Skip to content
Snippets Groups Projects
Commit e408aeef authored by Kirti Wankhede's avatar Kirti Wankhede Committed by Alex Williamson
Browse files

Fix use after free in vfio_migration_probe


Fixes Coverity issue:
CID 1436126:  Memory - illegal accesses  (USE_AFTER_FREE)

Fixes: a9e271ec ("vfio: Add migration region initialization and finalize function")
Signed-off-by: default avatarKirti Wankhede <kwankhede@nvidia.com>
Reviewed-by: default avatarDavid Edmondson <dme@dme.org>
Reviewed-by: default avatarAlex Bennée <alex.bennee@linaro.org>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
parent cb5d19e8
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment