aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorThomas Renninger <[email protected]>2010-01-29 16:48:51 +0000
committerLen Brown <[email protected]>2010-02-01 02:43:04 +0000
commitd2f6650a950dadd20667a04a9dc785f240d43695 (patch)
tree6ad17e1824dded4a114fd8b3be1f3024fc88da74 /lib/debugobjects.c
parentLinux 2.6.33-rc6 (diff)
downloadkernel-d2f6650a950dadd20667a04a9dc785f240d43695.tar.gz
kernel-d2f6650a950dadd20667a04a9dc785f240d43695.zip
ACPI: Add NULL pointer check in acpi_bus_start
If acpi_bus_add does not return a device and it's passed to acpi_bus_start, bad things will happen: BUG: unable to handle kernel NULL pointer dereference at 0000000000000008 IP: [<ffffffff8128402d>] acpi_bus_start+0x14/0x24 ... [<ffffffffa008977a>] acpiphp_bus_add+0xba/0x130 [acpiphp] [<ffffffffa008aa72>] enable_device+0x132/0x2ff [acpiphp] [<ffffffffa0089b68>] acpiphp_enable_slot+0xb8/0x130 [acpiphp] [<ffffffffa0089df7>] handle_hotplug_event_func+0x87/0x190 [acpiphp] Next patch would make this NULL pointer check obsolete, but better having one more than one missing... Signed-off-by: Thomas Renninger <[email protected]> Acked-by: Bjorn Helgaas <[email protected]> CC: [email protected] Signed-off-by: Len Brown <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions