Skip to content
Commit f3986205 authored by Levente Kurusa's avatar Levente Kurusa Committed by Bjorn Helgaas
Browse files

PCI/portdrv: Add put_device() after device_register() failure



This is required so that we give up the last reference to the device.
Removed the kfree() as put_device will result in release_pcie_device()
being called and hence the container of the device will be kfree'd.

[bhelgaas: fix conflict after my previous cleanup]
Signed-off-by: default avatarLevente Kurusa <levex@linux.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 8f3acca9
Loading
Loading
Loading
Loading
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