Andreas Kemnade
6838bb61b1
w1: omap-hdq: fix missing bus unregister at removal
commit a007734618 upstream.
The bus master was not removed after unloading the module
or unbinding the driver. That lead to oopses like this
[ 127.842987] Unable to handle kernel paging request at virtual address bf01d04c
[ 127.850646] pgd = 70e3cd9a
[ 127.853698] [bf01d04c] *pgd=8f908811, *pte=00000000, *ppte=00000000
[ 127.860412] Internal error: Oops: 80000007 [#1] PREEMPT SMP ARM
[ 127.866668] Modules linked in: bq27xxx_battery overlay [last unloaded: omap_hdq]
[ 127.874542] CPU: 0 PID: 1022 Comm: w1_bus_master1 Not tainted 4.19.0-rc4-00001-g2d51da718324 #12
[ 127.883819] Hardware name: Generic OMAP36xx (Flattened Device Tree)
[ 127.890441] PC is at 0xbf01d04c
[ 127.893798] LR is at w1_search_process_cb+0x4c/0xfc
[ 127.898956] pc : [<bf01d04c>] lr : [<c05f9580>] psr: a0070013
[ 127.905609] sp : cf885f48 ip : bf01d04c fp : ddf1e11c
[ 127.911132] r10: cf8fe040 r9 : c05f8d00 r8 : cf8fe040
[ 127.916656] r7 : 000000f0 r6 : cf8fe02c r5 : cf8fe000 r4 : cf8fe01c
[ 127.923553] r3 : c05f8d00 r2 : 000000f0 r1 : cf8fe000 r0 : dde1ef10
[ 127.930450] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
[ 127.938018] Control: 10c5387d Table: 8f8f0019 DAC: 00000051
[ 127.944091] Process w1_bus_master1 (pid: 1022, stack limit = 0x9135699f)
[ 127.951171] Stack: (0xcf885f48 to 0xcf886000)
[ 127.955810] 5f40: cf8fe000 00000000 cf884000 cf8fe090 000003e8 c05f8d00
[ 127.964477] 5f60: dde5fc34 c05f9700 ddf1e100 ddf1e540 cf884000 cf8fe000 c05f9694 00000000
[ 127.973114] 5f80: dde5fc34 c01499a4 00000000 ddf1e540 c0149874 00000000 00000000 00000000
[ 127.981781] 5fa0: 00000000 00000000 00000000 c01010e8 00000000 00000000 00000000 00000000
[ 127.990447] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 127.999114] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[ 128.007781] [<c05f9580>] (w1_search_process_cb) from [<c05f9700>] (w1_process+0x6c/0x118)
[ 128.016479] [<c05f9700>] (w1_process) from [<c01499a4>] (kthread+0x130/0x148)
[ 128.024047] [<c01499a4>] (kthread) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[ 128.031677] Exception stack(0xcf885fb0 to 0xcf885ff8)
[ 128.037017] 5fa0: 00000000 00000000 00000000 00000000
[ 128.045684] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 128.054351] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 128.061340] Code: bad PC value
[ 128.064697] ---[ end trace af066e33c0e14119 ]---
Cc: <stable@vger.kernel.org>
Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-11-13 11:15:09 -08:00
..
2017-11-02 11:10:55 +01:00
2018-11-13 11:14:55 -08:00
2018-05-01 12:58:21 -07:00
2018-09-19 22:43:35 +02:00
2018-10-03 17:00:59 -07:00
2018-07-22 14:28:43 +02:00
2018-07-03 11:24:56 +02:00
2018-10-13 09:27:25 +02:00
2017-11-02 11:10:55 +01:00
2018-11-13 11:15:02 -08:00
2018-11-13 11:14:54 -08:00
2018-08-03 07:50:31 +02:00
2018-09-05 09:26:42 +02:00
2018-11-13 11:15:02 -08:00
2018-10-18 09:16:22 +02:00
2018-10-20 09:48:52 +02:00
2018-11-13 11:14:54 -08:00
2018-07-03 11:24:51 +02:00
2018-11-13 11:14:59 -08:00
2018-08-24 13:09:08 +02:00
2018-04-12 12:32:13 +02:00
2017-11-02 11:10:55 +01:00
2018-11-13 11:15:05 -08:00
2018-06-05 11:41:57 +02:00
2018-11-13 11:15:06 -08:00
2017-11-02 11:10:55 +01:00
2018-09-09 19:55:56 +02:00
2018-04-26 11:02:03 +02:00
2018-09-26 08:38:10 +02:00
2017-11-02 11:10:55 +01:00
2018-05-01 12:58:24 -07:00
2017-08-28 17:15:16 +02:00
2018-11-10 07:48:34 -08:00
2018-11-10 07:48:35 -08:00
2018-11-13 11:15:06 -08:00
2017-11-02 11:10:55 +01:00
2018-11-13 11:14:58 -08:00
2018-11-13 11:14:52 -08:00
2017-11-02 11:10:55 +01:00
2018-11-13 11:14:59 -08:00
2018-11-13 11:14:51 -08:00
2018-05-30 07:52:34 +02:00
2018-08-09 12:16:39 +02:00
2018-11-13 11:15:09 -08:00
2018-11-13 11:15:05 -08:00
2018-11-10 07:48:36 -08:00
2018-10-20 09:48:52 +02:00
2018-09-15 09:45:29 +02:00
2018-08-22 07:46:11 +02:00
2018-03-19 08:42:50 +01:00
2018-11-13 11:14:52 -08:00
2018-09-19 22:43:41 +02:00
2018-09-09 19:55:54 +02:00
2017-11-02 11:10:55 +01:00
2018-11-13 11:14:58 -08:00
2018-11-04 14:52:47 +01:00
2018-08-03 07:50:38 +02:00
2017-11-02 11:10:55 +01:00
2018-05-25 16:17:47 +02:00
2018-11-13 11:15:00 -08:00
2018-11-13 11:15:07 -08:00
2018-11-13 11:14:53 -08:00
2018-11-13 11:14:54 -08:00
2018-01-17 09:45:27 +01:00
2018-11-13 11:15:04 -08:00
2018-08-24 13:09:06 +02:00
2018-04-26 11:02:13 +02:00
2017-11-02 11:10:55 +01:00
2018-11-13 11:15:05 -08:00
2018-10-13 09:27:28 +02:00
2018-08-24 13:09:14 +02:00
2018-10-13 09:27:27 +02:00
2017-11-02 11:10:55 +01:00
2018-05-30 07:52:28 +02:00
2018-09-26 08:38:12 +02:00
2018-11-13 11:15:07 -08:00
2018-11-13 11:14:46 -08:00
2018-10-18 09:16:24 +02:00
2018-08-15 18:12:48 +02:00
2018-11-13 11:14:56 -08:00
2018-09-29 03:06:03 -07:00
2017-11-02 11:10:55 +01:00
2018-10-03 17:00:47 -07:00
2017-09-08 18:26:51 -07:00
2018-11-10 07:48:34 -08:00
2018-09-15 09:45:27 +02:00
2017-12-14 09:53:08 +01:00
2017-11-02 11:10:55 +01:00
2018-10-03 17:00:55 -07:00
2018-06-21 04:02:48 +09:00
2018-09-26 08:38:03 +02:00
2018-09-29 03:06:04 -07:00
2018-09-26 08:38:13 +02:00
2018-11-04 14:52:42 +01:00
2017-11-02 11:10:55 +01:00
2018-11-13 11:15:00 -08:00
2017-11-02 11:10:55 +01:00
2018-11-04 14:52:38 +01:00
2018-11-13 11:14:52 -08:00
2017-08-28 13:52:22 +02:00
2017-11-02 11:10:55 +01:00
2018-10-20 09:48:53 +02:00
2018-10-18 09:16:21 +02:00
2018-06-21 04:02:54 +09:00
2018-11-13 11:14:56 -08:00
2018-04-24 09:36:29 +02:00
2018-10-13 09:27:26 +02:00
2018-11-13 11:14:59 -08:00
2018-11-13 11:15:04 -08:00
2018-10-03 17:00:46 -07:00
2018-08-03 07:50:23 +02:00
2018-11-04 14:52:49 +01:00
2018-11-04 14:52:39 +01:00
2017-08-29 08:52:51 -05:00
2018-10-13 09:27:30 +02:00
2017-11-02 11:10:55 +01:00
2018-11-13 11:15:09 -08:00
2018-08-03 07:50:24 +02:00
2018-11-13 11:15:02 -08:00
2018-05-30 07:52:30 +02:00
2017-11-02 11:10:55 +01:00
2018-02-25 11:07:53 +01:00