Power: Add guard condition for maximum wakeup reasons
authorRuchi Kandoi <kandoiruchi@google.com>
Fri, 7 Mar 2014 20:54:30 +0000 (12:54 -0800)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:53:36 +0000 (13:53 -0800)
commit617d4944c9709bfe186ae7dc170a543bb34b752d
tree40474be4355013b152afa09c9d2824f6afe65df8
parent93fd310cb60f2a0589639aa112e196f4fad47e96
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