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>
Mon, 13 Apr 2015 16:43:05 +0000 (00:43 +0800)
commit68930022c4e8eeed768c15342fcdb3a7bdb06823
treea9b544ab89316b4cbfe2f43979915dd055586c70
parente4f054d9a0f0d63b20a1df297a9aa32d23377e85
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