Priyalee Kushwaha
bf5d008164
platform/x86: intel_telemetry_debugfs: fix oops when load/unload module
This fixes an oops found while testing load/unload of the
intel_telemetry_debugfs module. module_init uses register_pm_notifier
for PM callbacks, but unregister_pm_notifier was missing from
module_exit.
[ 97.481860] BUG: unable to handle kernel paging request at ffffffffa006f010
[ 97.489742] IP: blocking_notifier_chain_register+0x3a/0xa0
[ 97.495898] PGD 2e0a067
[ 97.495899] PUD 2e0b063
[ 97.498737] PMD 179e29067
[ 97.501573] PTE 0
[ 97.508423] Oops: 0000 1 PREEMPT SMP
[ 97.512724] Modules linked in: intel_telemetry_debugfs intel_rapl gpio_keys dwc3 udc_core intel_telemetry_pltdrv intel_punit_ipc intel_telemetry_core rtc_cmos efivars x86_pkg_temp_thermal iwlwifi snd_hda_codec_hdmi soc_button_array btusb cfg80211 btrtl mei_me hci_uart btbcm mei btintel i915 bluetooth intel_pmc_ipc snd_hda_intel spi_pxa2xx_platform snd_hda_codec dwc3_pci snd_hda_core tpm_tis tpm_tis_core tpm efivarfs
[ 97.558453] CPU: 0 PID: 889 Comm: modprobe Not tainted 4.11.0-rc6-intel-dev-bkc #1
[ 97.566950] Hardware name: Intel Corp. Joule DVT3/SDS, BIOS GTPP181A.X64.0143.B30.1701132137 01/13/2017
[ 97.577518] task: ffff8801793a21c0 task.stack: ffff8801793f0000
[ 97.584162] RIP: 0010:blocking_notifier_chain_register+0x3a/0xa0
[ 97.590903] RSP: 0018:ffff8801793f3c58 EFLAGS: 00010286
[ 97.596802] RAX: ffffffffa006f000 RBX: ffffffff81e3ea20 RCX: 0000000000000000
[ 97.604812] RDX: ffff880179eaf210 RSI: ffffffffa0131000 RDI: ffffffff81e3ea20
[ 97.612821] RBP: ffff8801793f3c68 R08: 0000000000000006 R09: 000000000000005c
[ 97.620847] R10: 0000000000000000 R11: 0000000000000006 R12: ffffffffa0131000
[ 97.628855] R13: 0000000000000000 R14: ffff880176e35f48 R15: ffff8801793f3ea8
[ 97.636865] FS: 00007f7eeba07700(0000) GS:ffff88017fc00000(0000) knlGS:0000000000000000
[ 97.645948] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 97.652423] CR2: ffffffffa006f010 CR3: 00000001775ef000 CR4: 00000000003406f0
[ 97.660423] Call Trace:
[ 97.663166] ? 0xffffffffa0031000
[ 97.666885] register_pm_notifier+0x18/0x20
[ 97.671581] telemetry_debugfs_init+0x92/0x1000
Signed-off-by: Priyalee Kushwaha <priyalee.kushwaha@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
2017-06-13 10:57:54 -07:00
..
2017-04-28 21:51:29 +03:00
2016-09-27 14:35:21 +08:00
2017-02-24 23:48:46 -08:00
2014-10-20 16:21:27 +02:00
2017-03-30 22:42:30 +02:00
2017-03-14 22:58:02 -07:00
2017-04-28 21:52:24 +03:00
2017-02-24 23:48:48 -08:00
2017-04-28 21:52:24 +03:00
2017-04-28 21:52:24 +03:00
2015-02-07 12:12:00 -08:00
2015-10-03 08:44:57 -07:00
2017-04-28 21:51:26 +03:00
2016-05-27 11:47:56 -07:00
2015-06-10 22:04:11 -07:00
2017-04-13 10:12:19 -07:00
2017-04-13 10:12:19 -07:00
2016-09-27 21:15:23 -04:00
2017-03-14 22:58:04 -07:00
2017-03-06 22:07:12 +01:00
2017-04-13 10:12:46 -07:00
2017-03-23 09:01:35 -07:00
2016-04-09 03:12:58 +02:00
2017-04-19 12:57:32 -07:00
2015-03-06 17:18:16 -08:00
2014-10-20 16:21:27 +02:00
2017-02-03 14:04:53 +02:00
2017-04-28 21:51:25 +03:00
2017-04-20 13:26:18 -07:00
2015-10-15 00:21:07 +02:00
2017-04-28 21:51:29 +03:00
2016-12-18 14:56:37 -08:00
2017-04-17 15:39:04 -07:00
2017-03-02 08:42:27 +01:00
2010-12-23 09:51:36 +00:00
2016-05-27 11:47:55 -07:00
2017-02-24 23:48:45 -08:00
2017-02-03 14:04:53 +02:00
2015-06-19 01:12:11 +02:00
2017-02-14 00:39:48 +02:00
2016-12-13 09:28:58 -08:00
2017-04-28 21:51:28 +03:00
2016-04-19 13:51:41 -07:00
2017-04-13 10:16:04 -07:00
2016-01-30 09:40:35 -08:00
2016-05-05 13:58:55 -07:00
2017-06-13 10:57:54 -07:00
2016-07-26 17:23:08 -07:00
2017-02-24 23:48:54 -08:00
2017-04-18 09:04:03 -07:00
2014-09-17 13:55:54 -07:00
2016-12-13 09:29:01 -08:00
2017-04-25 15:09:22 +03:00
2017-05-04 11:56:59 -07:00
2017-04-17 15:39:04 -07:00
2017-02-03 14:04:53 +02:00
2016-10-23 07:52:57 -07:00
2017-03-14 22:58:07 -07:00
2017-03-14 22:58:08 -07:00
2014-01-29 18:54:05 -08:00
2017-03-14 22:58:09 -07:00
2017-01-26 16:21:59 -08:00
2015-06-07 21:30:12 -07:00
2015-06-19 01:12:25 +02:00
2014-10-20 16:21:27 +02:00
2017-04-13 11:23:46 -07:00
2016-12-24 11:46:01 -08:00
2017-03-16 21:52:12 +01:00
2017-01-21 01:43:42 +02:00
2016-05-27 11:47:53 -07:00
2016-01-19 17:35:47 -08:00
2017-03-14 22:57:13 -07:00
2017-03-14 22:58:10 -07:00
2017-03-14 22:58:11 -07:00
2016-09-23 16:21:06 -07:00
2016-09-23 16:21:05 -07:00
2017-03-14 22:58:11 -07:00
2016-05-20 17:58:30 -07:00
2014-10-20 16:21:27 +02:00
2013-12-07 01:03:14 +01:00