projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b42ccbc
)
acpi: fix oops in acpi_system_wakeup_device_seq_show
author
Linus Torvalds
<
[email protected]
>
Sun, 16 Nov 2008 18:09:34 +0000
(10:09 -0800)
committer
Linus Torvalds
<
[email protected]
>
Sun, 16 Nov 2008 18:09:34 +0000
(10:09 -0800)
Commit
0794469da3f7b2093575cbdfc1108308dd3641ce
: ("ACPI: struct device -
replace bus_id with dev_name(), dev_set_name()") introduced a bug by
testing 'dev_name(ldev)' instead of 'ldev->bus' for NULL when printing
out the bus information.
So if ldev->bus was NULL, we'd oops.
Reported-and-tested-by: Bruno Prémont <
[email protected]
>
Cc: Kay Sievers <
[email protected]
>
Cc: Len Brown <
[email protected]
>
Cc: Greg Kroah-Hartman <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/acpi/sleep/proc.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/sleep/proc.c
b/drivers/acpi/sleep/proc.c
index 64e591ba86f24fffd6251f9b65288e1b965da94b..4dbc2271acf5009cda80e48fdf19048f28b722a7 100644
(file)
--- a/
drivers/acpi/sleep/proc.c
+++ b/
drivers/acpi/sleep/proc.c
@@
-366,7
+366,7
@@
acpi_system_wakeup_device_seq_show(struct seq_file *seq, void *offset)
dev->wakeup.state.enabled ? "enabled" : "disabled");
if (ldev)
seq_printf(seq, "%s:%s",
-
dev_name(ldev)
? ldev->bus->name : "no-bus",
+
ldev->bus
? ldev->bus->name : "no-bus",
dev_name(ldev));
seq_printf(seq, "\n");
put_device(ldev);