OSDN Git Service

Power: Add guard condition for maximum wakeup reasons
authorRuchi Kandoi <kandoiruchi@google.com>
Fri, 7 Mar 2014 20:54:30 +0000 (12:54 -0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Sat, 13 Dec 2014 15:14:13 +0000 (23:14 +0800)
commit535a6886798c6a5a94c9ff8dbb0475cd1bf71309
treeb854b81d44ac36dd039f6922b570203b58268ad1
parent4661eb4bf5e59e9172f239397f72cfa0eb51131c
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