diff options
| author | 2025-12-02 16:13:49 +0100 | |
|---|---|---|
| committer | 2026-01-13 15:41:40 -0600 | |
| commit | 01464a3fdf91c041a381d93a1b6fefbdb819a46f (patch) | |
| tree | 7983a633636139eda2226f56020c72a648491194 /samples/kobject/ssh:/git@git.zx2c4.com | |
| parent | Linux 6.19-rc1 (diff) | |
PCI/portdrv: Fix potential resource leak
pcie_port_probe_service() unconditionally calls get_device() (unless it
fails). So drop that reference also unconditionally as it's fine for a
PCIe driver to not have a remove callback.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Link: https://patch.msgid.link/e1c68c3b3f1af8427e98ca5e2c79f8bf0ebe2ce4.1764688034.git.u.kleine-koenig@baylibre.com
Diffstat (limited to 'samples/kobject/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
