RTC driver: Needs to initialize state structure to zero on initalization

This commit is contained in:
Gregory Nutt
2016-04-03 12:40:25 -06:00
parent ae95f6cdfd
commit a44b0798e2
2 changed files with 2 additions and 2 deletions
+1 -1
Submodule arch updated: c71c24971d...c4f77e7d87
+1 -1
View File
@@ -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;