diff options
author | Yanjiang Jin <[email protected]> | 2016-11-17 10:56:20 +0800 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2016-11-17 11:19:50 +0100 |
commit | 27bda205ba93c02d8b5dcd1d5c2acc84d889ca6a (patch) | |
tree | c656d529a88a1113afcc5cd5cc100f4f6bc63565 /scripts/gdb/linux/tasks.py | |
parent | 8176170e03db7289ca14673718f1a7f6aae51706 (diff) |
EDAC, mpc85xx: Implement remove method for the platform driver
If we execute the below steps without this patch:
modprobe mpc85xx_edac [The first insmod, everything is well.]
modprobe -r mpc85xx_edac
modprobe mpc85xx_edac [insmod again, error happens.]
We would get the error messages as below:
BUG: recent printk recursion!
Oops: Kernel access of bad area, sig: 11 [#48]
Modules linked in: mpc85xx_edac edac_core softdog [last unloaded: mpc85xx_edac]
CPU: 5 PID: 14773 Comm: modprobe Tainted: G D C 4.8.3-rt2
.vsnprintf
.vscnprintf
.vprintk_emit
.printk
.edac_pci_add_device
.mpc85xx_pci_err_probe
.platform_drv_probe
.driver_probe_device
.__driver_attach
.bus_for_each_dev
.driver_attach
.bus_add_driver
.driver_register
.__platform_register_drivers
.mpc85xx_mc_init
.do_one_initcall
.do_init_module
.load_module
.SyS_finit_module
system_call
Address this by cleaning up properly when removing the platform driver.
Tested on a T4240QDS board.
Signed-off-by: Yanjiang Jin <[email protected]>
Acked-by: Johannes Thumshirn <[email protected]>
Cc: linux-edac <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
[ Boris: massage commit message. ]
Signed-off-by: Borislav Petkov <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions