mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
hw/pvrdma: Provide correct value to object_get_typename
Use base object of PCIDevice in call to object_get_typename(). Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com> Message-Id: <1552300155-25216-12-git-send-email-yuval.shaia@oracle.com> Reviewed-by: Kamal Heib <kamalheib1@gmail.com> Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com> Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
This commit is contained in:
parent
b556c3cefc
commit
db8b88bf2c
1 changed files with 1 additions and 1 deletions
|
@ -593,7 +593,7 @@ static void pvrdma_realize(PCIDevice *pdev, Error **errp)
|
|||
|
||||
func0 = pci_get_function_0(pdev);
|
||||
/* Break if not vmxnet3 device in slot 0 */
|
||||
if (strcmp(object_get_typename(&func0->qdev.parent_obj), TYPE_VMXNET3)) {
|
||||
if (strcmp(object_get_typename(OBJECT(func0)), TYPE_VMXNET3)) {
|
||||
error_setg(errp, "Device on %x.0 must be %s", PCI_SLOT(pdev->devfn),
|
||||
TYPE_VMXNET3);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue