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;