acpi: add checking for NULL early param
authorCyrill Gorcunov <gorcunov@gmail.com>
Wed, 20 Aug 2008 23:41:45 +0000 (16:41 -0700)
committerAndi Kleen <ak@linux.intel.com>
Thu, 21 Aug 2008 06:45:39 +0000 (08:45 +0200)
commitf0df2d6b52ad7db5edf56909509d51be66fe90be
tree435643478dd7d18449bccc602abda1fee4e13d98
parent1371c893ff9de0d57fa5b5cf0255d66b8849e13d
acpi: add checking for NULL early param

The early_param handling function could recieve NULL pointer as argument
in case if user didn't enter parameter value.  So we have to be ready for
a such situation and do check for NULL pointer if needed.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
drivers/acpi/tables.c