Power: Add guard condition for maximum wakeup reasons
authorRuchi Kandoi <kandoiruchi@google.com>
Fri, 7 Mar 2014 20:54:30 +0000 (12:54 -0800)
committerRuchi Kandoi <kandoiruchi@google.com>
Mon, 10 Mar 2014 18:17:35 +0000 (18:17 +0000)
commit8b531976d51c33d5ef83ca2637b08afc2ed51802
treea5134cfaa93db1f34265d3bd86933ff3dc6c564b
parenteb131375b589db97c04218c0d9fb5c5873cec0bf
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