From a44b0798e229d2a5547739926a1e2105ee67e07f Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 3 Apr 2016 12:40:25 -0600 Subject: [PATCH] RTC driver: Needs to initialize state structure to zero on initalization --- arch | 2 +- drivers/timers/rtc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch b/arch index c71c24971d..c4f77e7d87 160000 --- a/arch +++ b/arch @@ -1 +1 @@ -Subproject commit c71c24971d1ff233a59a85c7ad65c81bdaeaa60b +Subproject commit c4f77e7d8721f62631c4e90aeb4629db9c7cbee0 diff --git a/drivers/timers/rtc.c b/drivers/timers/rtc.c index ae1bd96899..62453c1c20 100644 --- a/drivers/timers/rtc.c +++ b/drivers/timers/rtc.c @@ -577,7 +577,7 @@ int rtc_initialize(int minor, FAR struct rtc_lowerhalf_s *lower) /* Allocate an upper half container structure */ - upper = (FAR struct rtc_upperhalf_s *)kmm_malloc(sizeof(struct rtc_upperhalf_s)); + upper = (FAR struct rtc_upperhalf_s *)kmm_zalloc(sizeof(struct rtc_upperhalf_s)); if (!upper) { return -ENOMEM;