Jiri Slaby
d406577526
watchdog: sbc_fitpc2_wdt, fix crash on systems without DMI_BOARD_NAME
...
Some systems don't provide DMI_BOARD_NAME in their DMI tables. Avoid
crash in such situations in fitpc2_wdt_init.
The fix is to check if the dmi_get_system_info return value is NULL.
The oops:
BUG: unable to handle kernel NULL pointer dereference at (null)
IP: [<ffffffff81253ae6>] strstr+0x26/0xa0
PGD 3966e067 PUD 39605067 PMD 0
Oops: 0000 [#1 ] SMP
last sysfs file: /sys/devices/system/cpu/cpu1/cache/index2/shared_cpu_map
CPU 1
Modules linked in: ...
Pid: 1748, comm: modprobe Not tainted 2.6.37-22-default #1 /Bochs
RIP: 0010:[<ffffffff81253ae6>] [<ffffffff81253ae6>] strstr+0x26/0xa0
RSP: 0018:ffff88003ad73f18 EFLAGS: 00010206
RAX: 0000000000000000 RBX: 00000000ffffffed RCX: 00000000ffffffff
RDX: ffffffffa003f4cc RSI: ffffffffa003f4c2 RDI: 0000000000000000
...
CR2: 0000000000000000 CR3: 000000003b7ac000 CR4: 00000000000006e0
...
Process modprobe (pid: 1748, threadinfo ffff88003ad72000, task ffff88002e6365c0)
Stack: ...
Call Trace:
[<ffffffffa004201f>] fitpc2_wdt_init+0x1f/0x13c [sbc_fitpc2_wdt]
[<ffffffff810002da>] do_one_initcall+0x3a/0x170
...
Code: f3 c3 0f 1f 00 80 3e 00 53 48 89 f8 74 1b 48 89 f2 0f 1f 40 00 48 83 c2 01 80 3a 00 75 f7 49 89 d0 48 89 f8 49 29 f0 75 02 5b c3 <80> 3f 00 74 0e 0f 1f 44 00 00 48 83 c0 01 80 38 00 75 f7 49 89
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
2011-03-09 21:33:37 +00:00
..
2010-03-07 10:30:57 +00:00
2010-03-07 10:30:57 +00:00
2010-03-30 22:02:32 +09:00
2011-01-12 10:23:55 +00:00
2011-01-12 10:24:11 +00:00
2010-10-15 15:53:27 +02:00
2010-06-17 09:56:57 +00:00
2010-03-07 10:30:57 +00:00
2009-06-18 07:30:57 +00:00
2011-01-12 13:51:29 +00:00
2010-03-07 10:30:57 +00:00
2010-12-02 14:10:16 +00:00
2010-05-25 09:03:07 +00:00
2011-01-12 10:24:38 +00:00
2010-03-07 10:30:57 +00:00
2010-03-07 10:30:57 +00:00
2010-10-22 10:52:56 -07:00
2010-03-30 22:02:32 +09:00
2010-10-15 15:53:27 +02:00
2010-05-25 09:05:34 +00:00
2011-01-12 10:23:04 +00:00
2010-12-02 14:10:21 +00:00
2010-03-07 10:30:57 +00:00
2011-01-07 15:08:52 +01:00
2010-03-08 13:48:01 +00:00
2010-03-07 10:30:57 +00:00
2010-03-30 22:02:32 +09:00
2010-12-14 09:54:19 +01:00
2010-03-07 10:30:57 +00:00
2009-09-18 08:39:37 +00:00
2010-10-28 21:41:08 +00:00
2010-10-28 21:42:32 +00:00
2010-05-25 09:05:56 +00:00
2008-05-28 11:51:32 +00:00
2011-01-12 10:25:16 +00:00
2010-03-07 10:30:57 +00:00
2010-03-07 10:30:57 +00:00
2011-02-08 15:07:45 +10:00
2011-01-12 10:24:52 +00:00
2011-02-08 15:07:45 +10:00
2010-10-28 21:42:59 +00:00
2011-02-08 15:07:45 +10:00
2010-04-16 12:26:27 +00:00
2010-03-07 10:30:57 +00:00
2010-08-06 09:25:50 -06:00
2010-05-12 11:18:14 +01:00
2009-06-18 07:30:44 +00:00
2010-03-07 10:30:57 +00:00
2010-03-30 22:02:32 +09:00
2011-01-12 13:51:23 +00:00
2011-01-12 13:51:23 +00:00
2010-10-29 19:08:42 +01:00
2010-08-05 13:26:22 +01:00
2010-10-25 13:46:56 -07:00
2008-10-10 13:11:10 +00:00
2009-06-08 13:05:00 -04:00
2010-05-25 09:03:52 +00:00
2010-03-07 10:30:57 +00:00
2010-05-20 13:21:38 -07:00
2010-03-07 10:30:57 +00:00
2010-04-03 22:22:20 +00:00
2010-05-25 09:03:52 +00:00
2010-03-30 22:02:32 +09:00
2010-03-07 10:30:57 +00:00
2010-12-22 12:05:21 +01:00
2010-08-06 09:25:50 -06:00
2010-08-08 18:20:09 +00:00
2009-07-09 18:29:38 +00:00
2010-09-15 18:43:47 +00:00
2009-06-18 07:30:30 +00:00
2008-08-06 13:21:09 +00:00
2009-06-18 07:30:30 +00:00
2009-06-18 07:30:57 +00:00
2011-03-09 21:33:37 +00:00
2009-03-25 09:07:04 +00:00
2009-09-18 08:39:37 +00:00
2010-08-08 18:21:15 +00:00
2009-06-18 07:30:57 +00:00
2010-05-25 09:03:52 +00:00
2009-03-25 09:07:04 +00:00
2009-06-18 07:30:30 +00:00
2010-08-08 18:22:25 +00:00
2011-01-12 13:51:16 +00:00
2011-01-12 13:51:16 +00:00
2010-03-07 10:30:57 +00:00
2010-09-15 18:43:52 +00:00
2010-05-25 09:05:46 +00:00
2010-03-07 10:30:59 +00:00
2011-01-12 10:23:52 +00:00
2009-06-18 07:30:30 +00:00
2009-07-09 18:29:16 +00:00
2008-08-06 13:21:09 +00:00
2010-03-07 10:30:57 +00:00
2008-10-28 19:16:11 +00:00
2009-03-25 09:07:04 +00:00
2010-03-07 10:30:57 +00:00
2008-10-28 19:16:11 +00:00
2010-05-25 09:03:52 +00:00
2010-08-08 18:20:38 +00:00
2010-05-25 09:05:34 +00:00
2010-03-07 10:30:57 +00:00
2010-06-07 15:55:03 +00:00