cpuidle / ACPI: fix potential NULL pointer dereference
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 8 Oct 2012 00:40:42 +0000 (08:40 +0800)
committerLen Brown <len.brown@intel.com>
Tue, 9 Oct 2012 02:51:27 +0000 (22:51 -0400)
commite8b1b59dc8e42a47c4ce541bd1767ffac206b29c
treec64aaad7cb6a187a2acc9ec17c9984c05c120b5d
parentf5a246eab9a268f51ba8189ea5b098a1bfff200e
cpuidle / ACPI: fix potential NULL pointer dereference

The dereference should be moved below the NULL test.

dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/processor_idle.c