diff options
| author | Yuho Choi <dbgh9129@gmail.com> | 2026-07-02 23:36:03 -0400 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-07-06 20:05:14 +0200 |
| commit | fcdae14b64e9ac27387a17a96f834009a2c1a8e1 (patch) | |
| tree | 314ed6fb21ed5febccba49b9db17d1213dd2dfaf /tools/perf/scripts/python/bin | |
| parent | 07bfd4abdc3500427fa6ff938f1884ef483e4460 (diff) | |
PNP: Fix card device cleanup on registration failure
pnp_add_card() ignores __pnp_add_device() failures. If device_register()
fails there, the device is removed from the global and protocol lists, but
remains on the card list and its device reference is not dropped.
Remove the failed device from the card list and call put_device() before
continuing with the remaining card devices.
Signed-off-by: Yuho Choi <dbgh9129@gmail.com>
Link: https://patch.msgid.link/20260703033603.114931-1-dbgh9129@gmail.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
