]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
platform/x86: intel_pmc_ipc: adding error handling
authorJunxiao Chang <junxiao.chang@intel.com>
Mon, 8 Apr 2019 09:40:22 +0000 (17:40 +0800)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 8 Apr 2019 17:55:08 +0000 (20:55 +0300)
commite61985d0550df8c2078310202aaad9b41049c36c
tree319c00561ecc47a405489cca6995a179411d2aa6
parent9a4b33d4d22f3ff3fb1a24b8be5edae3be1c795d
platform/x86: intel_pmc_ipc: adding error handling

If punit or telemetry device initialization fails, pmc driver should
unregister and return failure.

This change is to fix a kernel panic when removing kernel module
intel_pmc_ipc.

Fixes: 48c1917088ba ("platform:x86: Add Intel telemetry platform device")
Signed-off-by: Junxiao Chang <junxiao.chang@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/intel_pmc_ipc.c