From: Henrique de Moraes Holschuh Date: Mon, 21 Jul 2008 12:15:51 +0000 (-0300) Subject: ACPI: thinkpad-acpi: don't misdetect in get_thinkpad_model_data() on -ENOMEM X-Git-Tag: v2.6.27-rc1~510^2~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf20e740a4bcc686de02e2fd1c1810a58872f46e;p=pandora-kernel.git ACPI: thinkpad-acpi: don't misdetect in get_thinkpad_model_data() on -ENOMEM Explicitly check for memory allocation failures, and return status to indicate that we could not collect data due to errors. This lets the driver have a far more predictable failure mode on ENOMEM in that codepath: it will refuse to load. This is far better than trying to proceed with missing data which is used to detect quirks, etc. Signed-off-by: Henrique de Moraes Holschuh --- Reading git-diff-tree failed