bianbu-linux-6.6/drivers/platform/x86/intel/pmc
Johan Hovold 26a8b09437 platform/x86: intel_pmc_core: fix memleak on registration failure
In case device registration fails during module initialisation, the
platform device structure needs to be freed using platform_device_put()
to properly free all resources (e.g. the device name).

Fixes: 938835aa90 ("platform/x86: intel_pmc_core: do not create a static struct device")
Cc: stable@vger.kernel.org      # 5.9
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20211222105023.6205-1-johan@kernel.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2021-12-23 19:30:32 +01:00
..
core.c platform/x86/intel: pmc/core: Add GBE Package C10 fix for Alder Lake PCH 2021-08-20 20:33:35 +02:00
core.h platform/x86/intel: pmc/core: Add Alder Lake low power mode support for pmc core 2021-08-20 20:33:35 +02:00
Kconfig
Makefile
pltdrv.c platform/x86: intel_pmc_core: fix memleak on registration failure 2021-12-23 19:30:32 +01:00