commit | 173a5a4c909789fcd57d00355d2237618a3824a4 | [log] [tgz] |
---|---|---|
author | Hanjun Guo <hanjun.guo@linaro.org> | Fri May 31 11:36:08 2013 +0800 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Sat Jun 01 22:23:39 2013 +0200 |
tree | 612b1a86e74a833e9412f992cbc4f75b641478bc | |
parent | 242831eb15a06fa4414eaa705fdc6dd432ab98d1 [diff] |
ACPI / processor: Fix potential NULL pointer dereference in acpi_processor_add() 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>