From: JP Abgrall Date: Sat, 3 Sep 2011 01:14:12 +0000 (-0700) Subject: rtc alarm: fix bad index when canceling alarms[] X-Git-Tag: firefly_0821_release~7613^2~322 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=692e468137ebb2a31431c4b3fad1dca0a2da7659;p=firefly-linux-kernel-4.4.55.git rtc alarm: fix bad index when canceling alarms[] It was using ANDROID_ALARM_ELAPSED_REALTIME_WAKEUP_MASK as an index. Change-Id: I919860cc71254453e382616bce9fd5455802cb3d Signed-off-by: JP Abgrall --- diff --git a/drivers/rtc/alarm.c b/drivers/rtc/alarm.c index e0e98dd1eac6..28b0df836a30 100644 --- a/drivers/rtc/alarm.c +++ b/drivers/rtc/alarm.c @@ -389,7 +389,7 @@ static int alarm_suspend(struct platform_device *pdev, pm_message_t state) hrtimer_cancel(&alarms[ANDROID_ALARM_RTC_WAKEUP].timer); hrtimer_cancel(&alarms[ - ANDROID_ALARM_ELAPSED_REALTIME_WAKEUP_MASK].timer); + ANDROID_ALARM_ELAPSED_REALTIME_WAKEUP].timer); tmp_queue = &alarms[ANDROID_ALARM_RTC_WAKEUP]; if (tmp_queue->first)