ACPI / processor: Fix potential NULL pointer dereference in acpi_processor_add()
authorHanjun Guo <hanjun.guo@linaro.org>
Fri, 31 May 2013 03:36:08 +0000 (11:36 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 1 Jun 2013 20:23:39 +0000 (22:23 +0200)
In acpi_processor_add(), get_cpu_device() may return NULL in some cases
which is then passed to acpi_bind_one() and that will case a NULL
pointer dereference to occur.

Add a check to prevent that from happening.

[rjw: Changelog]
Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

No differences found