Linus Torvalds 77fb61a04a acpi: fix oops in acpi_system_wakeup_device_seq_show
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 <bonbons@linux-vserver.org>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Len Brown <len.brown@intel.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-11-16 10:09:34 -08:00
..
2008-11-11 21:17:26 -05:00
2008-11-11 21:14:49 -05:00
2008-10-22 23:33:29 -04:00
2008-11-11 21:14:49 -05:00
2008-11-11 21:17:26 -05:00
2008-10-22 23:33:29 -04:00
2008-11-11 21:17:26 -05:00
2008-11-11 21:15:50 -05:00
2008-10-22 23:33:29 -04:00
2008-02-07 03:33:23 -05:00
2008-07-16 23:27:07 +02:00
2008-11-11 21:14:15 -05:00
2008-10-23 00:11:07 -04:00
2008-10-22 23:33:29 -04:00
2008-11-11 21:17:26 -05:00
2008-11-11 21:14:49 -05:00
2008-11-11 21:15:50 -05:00