summaryrefslogtreecommitdiff
path: root/tools/lib/api/debug.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2024-05-21 15:46:32 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-06-16 13:51:05 +0200
commite6dc6a2a24bfb986941b34c8dd9cbc95101c0750 (patch)
treed52949a2494c48a08ac64a56a432ef3b2590395d /tools/lib/api/debug.c
parent797fd53b41a845c978d111c8cbc56d30b913d7ab (diff)
ACPI: APEI: EINJ: Fix einj_dev release leak
commit 7ff6c798eca05e4a9dcb80163cb454d7787a4bc3 upstream. The platform driver conversion of EINJ mistakenly used platform_device_del() to unwind platform_device_register_full() at module exit. This leads to a small leak of one 'struct platform_device' instance per module load/unload cycle. Switch to platform_device_unregister() which performs both device_del() and final put_device(). Fixes: 5621fafaac00 ("EINJ: Migrate to a platform driver") Cc: 6.9+ <stable@vger.kernel.org> # 6.9+ Signed-off-by: Dan Williams <dan.j.williams@intel.com> Reviewed-by: Ben Cheatham <Benjamin.Cheatham@amd.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/lib/api/debug.c')
0 files changed, 0 insertions, 0 deletions