Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions drivers/xen/xen-pciback/pci_stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,13 @@ static void pcistub_device_release(struct kref *kref)
/* Disable the device */
xen_pcibk_reset_device(dev);

kfree(dev_data);
pci_set_drvdata(dev, NULL);

/* Clean-up the device */
/* Clean-up the device. Both find the fields through drvdata. */
xen_pcibk_config_free_dyn_fields(dev);
xen_pcibk_config_free_dev(dev);

kfree(dev_data);
pci_set_drvdata(dev, NULL);

pci_clear_dev_assigned(dev);
pci_dev_put(dev);

Expand Down
Loading