Power: Add guard condition for maximum wakeup reasons
authorRuchi Kandoi <kandoiruchi@google.com>
Fri, 7 Mar 2014 20:54:30 +0000 (12:54 -0800)
committer黄涛 <huangtao@rock-chips.com>
Tue, 22 Apr 2014 13:31:01 +0000 (21:31 +0800)
commit77b1737fd63db149914c09117874cde8abac7f04
tree673cea8f7c8a267f21c6f111d35d18b2efd5e087
parentdeefdc5c55bc3ed1b58affe81299707389e2f7ee
Power: Add guard condition for maximum wakeup reasons

Ensure the array for the wakeup reason IRQs does not overflow.

Change-Id: Iddc57a3aeb1888f39d4e7b004164611803a4d37c
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
(cherry picked from commit b5ea40cdfcf38296535f931a7e5e7bf47b6fad7f)
kernel/power/wakeup_reason.c