[BUG] intel_th: pci: Found a bug in intel_th_pci_remove()

From: Zheyu Ma
Date: Fri May 20 2022 - 10:31:40 EST


Hello,

I found a bug when removing the module, the following log can reveal it:

[ 14.739939] sysfs group 'power' not found for kobject '0-dcih'
[ 14.740243] WARNING: CPU: 0 PID: 297 at fs/sysfs/group.c:280
sysfs_remove_group+0x9f/0x220
[ 14.742469] RIP: 0010:sysfs_remove_group+0x9f/0x220
[ 14.746649] Call Trace:
[ 14.746778] <TASK>
[ 14.746888] device_del+0x296/0xe50
[ 14.747227] intel_th_free+0x110/0x3f0
[ 14.747418] intel_th_pci_remove+0x38/0x50 [intel_th_pci]
[ 14.747685] pci_device_remove+0x92/0x24

Thanks,
Zheyu Ma