Nathan Williams
d1f3b65d2d
mtd cs553x_nand: Initialise ecc.strength before nand_scan()
Loading cs553x_nand with Hynix H27U1G8F2BTR NAND flash causes this bug:
kernel BUG at drivers/mtd/nand/nand_base.c:3345!
invalid opcode: 0000 [#1]
Modules linked in: cs553x_nand(+) vfat fat usb_storage ehci_hcd usbcore usb_comr
Pid: 436, comm: modprobe Not tainted 3.6.7 #1
EIP: 0060:[<c118d205>] EFLAGS: 00010296 CPU: 0
EIP is at nand_scan_tail+0x64c/0x69c
EAX: 00000034 EBX: cea6ed98 ECX: 00000000 EDX: 00000000
ESI: cea6ec00 EDI: cea6ec00 EBP: 20000000 ESP: cdd17e48
DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068
CR0: 8005003b CR2: 0804e119 CR3: 0d850000 CR4: 00000090
DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
DR6: ffff0ff0 DR7: 00000400
Process modprobe (pid: 436, ti=cdd16000 task=cdd1c320 task.ti=cdd16000)
Stack:
c12e962c c118f7ef 00000003 cea6ed98 d014b25c 20000000 fffff007 00000001
00000000 cdd53b00 d014b000 c1001021 cdd53b00 d01493c0 cdd53b00 cdd53b00
d01493c0 c1047f83 d014b4a0 00000000 cdd17f9c ce4be454 cdd17f48 cdd1c320
Call Trace:
[<c118f7ef>] ? nand_scan+0x1b/0x4d
[<d014b25c>] ? init_module+0x25c/0x2de [cs553x_nand]
[<d014b000>] ? 0xd014afff
[<c1001021>] ? do_one_initcall+0x21/0x111
[<c1047f83>] ? sys_init_module+0xe4/0x1261
[<c1031207>] ? task_work_run+0x36/0x43
[<c1265ced>] ? syscall_call+0x7/0xb
Code: fa ff ff c7 86 d8 00 00 00 01 00 00 00 e9 5f fc ff ff 68 f8 26 2e c1 e8 a7
EIP: [<c118d205>] nand_scan_tail+0x64c/0x69c SS:ESP 0068:cdd17e48
Initialising ecc.strength before the call to nand_scan() fixes this.
Signed-off-by: Nathan Williams <nathan@traverse.com.au>
Cc: stable@vger.kernel.org [3.4+]
Acked-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Mike Dunn <mikedunn@newsguy.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
2012-12-03 16:36:34 +02:00
..
2012-11-03 09:52:54 +08:00
2012-10-05 22:32:05 -03:00
2012-10-06 03:04:40 +09:00
2012-10-26 14:23:35 -07:00
2012-11-22 09:32:28 +02:00
2012-10-30 08:37:31 +01:00
2012-10-02 13:38:27 -07:00
2012-10-25 12:05:50 -07:00
2012-11-15 15:37:47 +02:00
2012-10-02 18:32:35 -07:00
2012-10-02 13:38:27 -07:00
2012-10-31 21:02:57 +01:00
2012-10-08 22:52:54 -04:00
2012-10-07 20:55:16 +09:00
2012-10-26 14:59:01 -07:00
2012-10-24 16:13:27 +02:00
2012-10-23 16:32:18 +09:00
2012-10-09 18:26:28 +02:00
2012-10-19 14:07:47 -07:00
2012-10-30 15:56:22 -07:00
2012-11-02 10:31:37 +10:00
2012-10-31 15:39:28 -07:00
2012-10-24 15:46:27 -07:00
2012-11-01 17:31:20 -07:00
2012-11-03 15:14:54 -07:00
2012-10-06 03:04:41 +09:00
2012-10-19 19:44:06 +01:00
2012-10-23 09:03:49 -07:00
2012-11-02 16:11:15 -07:00
2012-10-24 16:58:53 +02:00
2012-10-26 02:20:36 -04:00
2012-10-10 20:14:07 +09:00
2012-10-07 21:04:56 +09:00
2012-10-06 03:16:12 +09:00
2012-10-31 11:42:30 +11:00
2012-10-17 16:45:56 -03:00
2012-10-07 17:29:24 +09:00
2012-10-10 20:15:24 +09:00
2012-10-11 17:21:40 -04:00
2012-12-03 16:36:34 +02:00
2012-11-02 21:58:09 -04:00
2012-10-17 15:53:03 -05:00
2012-10-09 16:22:18 +09:00
2012-10-09 16:11:46 +09:00
2012-10-06 03:16:12 +09:00
2012-10-19 15:40:18 -07:00
2012-10-23 11:52:25 +02:00
2012-10-09 01:47:35 -04:00
2012-10-13 11:27:59 +09:00
2012-10-06 03:04:56 +09:00
2012-10-10 20:15:24 +09:00
2012-10-11 08:50:15 +09:00
2012-10-05 12:01:30 +09:00
2012-10-07 21:04:56 +09:00
2012-10-07 21:04:56 +09:00
2012-10-25 14:37:53 -07:00
2012-10-18 17:50:08 +02:00
2012-10-26 12:29:46 -07:00
2012-10-15 14:08:48 +09:00
2012-10-28 11:13:54 -07:00
2012-10-26 10:25:31 -07:00
2012-11-01 00:38:45 -07:00
2012-11-03 09:52:55 +08:00
2012-10-24 11:57:21 -07:00
2012-10-09 16:22:19 +09:00
2012-10-25 13:13:48 -07:00
2012-10-10 09:10:32 -06:00
2012-10-24 23:19:30 -04:00
2012-11-02 13:26:11 -07:00
2012-10-07 21:06:10 +09:00
2012-11-02 13:26:11 -07:00
2012-10-16 18:07:12 -07:00