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
..
2011-02-24 19:59:21 +01:00
2011-01-28 03:16:20 -05:00
2011-02-13 16:55:46 -08:00
2011-01-25 20:50:07 +01:00
2011-03-03 11:53:25 -05:00
2011-02-23 19:42:03 -08:00
2011-02-09 14:22:37 +01:00
2011-03-06 10:44:13 -08:00
2011-01-26 10:50:04 +10:00
2011-03-01 18:49:44 -05:00
2011-01-12 18:06:19 -05:00
2011-01-13 10:25:58 -08:00
2011-01-13 08:03:09 -08:00
2011-02-14 02:40:46 -08:00
2011-02-10 14:41:49 +01:00
2011-01-21 13:34:39 -08:00
2011-02-15 04:20:57 +01:00
2011-02-11 16:12:20 -08:00
2011-03-08 08:28:33 +10:00
2011-01-20 17:02:05 -08:00
2011-02-26 08:59:32 -08:00
2011-02-23 00:43:55 +00:00
2011-01-20 17:02:05 -08:00
2011-02-17 17:08:48 -05:00
2011-02-17 14:04:59 -08:00
2011-02-23 14:44:25 -08:00
2011-02-28 12:07:32 -08:00
2011-01-26 10:49:58 +10:00
2011-01-20 21:37:29 +10:30
2011-01-21 14:08:34 +11:00
2011-02-24 17:26:41 +11:00
2011-02-02 17:52:19 -08:00
2011-02-16 17:48:59 +01:00
2011-02-12 12:51:21 -06:00
2011-03-02 10:57:50 +01:00
2011-03-04 17:53:38 -08:00
2011-03-07 16:55:44 -05:00
2011-02-16 17:48:59 +01:00
2011-03-03 11:55:43 -08:00
2011-02-25 15:07:36 -08:00
2011-03-02 13:45:19 -07:00
2011-01-26 10:49:59 +10:00
2011-02-15 19:06:31 +11:00
2011-03-07 20:45:42 -08:00
2011-02-21 17:06:21 -05:00
2011-01-12 04:59:44 -05:00
2011-01-14 09:25:59 -08:00
2011-03-04 17:53:38 -08:00
2011-02-25 15:07:37 -08:00
2011-02-25 08:51:07 +00:00
2011-03-04 17:53:38 -08:00
2011-03-03 17:56:14 +01:00
2011-03-02 08:48:05 -05:00
2011-01-11 23:27:25 -05:00
2011-01-19 19:02:35 +09:00
2011-02-15 13:25:36 -07:00
2011-02-08 12:03:54 -08:00
2011-02-10 12:19:23 -08:00
2011-02-12 12:32:41 -06:00
2011-01-13 10:05:56 -08:00
2011-02-28 18:00:31 -08:00
2011-02-28 12:06:20 -08:00
2011-03-03 15:43:15 -08:00
2011-02-01 16:48:46 +02:00
2011-03-04 17:53:38 -08:00
2011-01-20 21:37:30 +10:30
2011-02-11 16:12:20 -08:00
2011-03-09 21:33:37 +00:00
2011-02-17 10:31:20 +00:00
2011-01-14 10:12:29 -06:00
2011-01-20 16:39:23 -08:00