On 17/5/23 04:46, Zhenzhong Duan wrote:
vbasedev->name is freed wrongly which leads to garbage VFIO trace log. Fix it by allocating a dup of vbasedev->name and then free the dup.Fixes: 2dca1b37a7 ("vfio/pci: add support for VF token") Suggested-by: Alex Williamson <[email protected]> Signed-off-by: Zhenzhong Duan <[email protected]> --- v2: "toke" -> "token", Cedric Update with Alex suggested change hw/vfio/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
