From: Bob Moore Date: Wed, 18 Feb 2009 06:28:02 +0000 (+0800) Subject: ACPICA: Fix parameter validation for acpi_read/write X-Git-Tag: v2.6.30-rc1~199^2~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac0c84502697114a378057eed83a9baba879cfc9;p=pandora-kernel.git ACPICA: Fix parameter validation for acpi_read/write Now return AE_BAD_PARAMETER if the input register pointer is null, and AE_BAD_ADDRESS if the register has an address of zero. Previously, these cases simply returned AE_OK. For optional registers such as PM1B status/enable/control, the caller should check for a valid register address before calling. ACPICA BZ 748. http://www.acpica.org/bugzilla/show_bug.cgi?id=748 Signed-off-by: Bob Moore Signed-off-by: Lin Ming Signed-off-by: Len Brown --- Reading git-diff-tree failed