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

2
arch

@ -1 +1 @@
Subproject commit c71c24971d1ff233a59a85c7ad65c81bdaeaa60b Subproject commit c4f77e7d8721f62631c4e90aeb4629db9c7cbee0

View File

@ -577,7 +577,7 @@ int rtc_initialize(int minor, FAR struct rtc_lowerhalf_s *lower)
/* Allocate an upper half container structure */ /* 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) if (!upper)
{ {
return -ENOMEM; return -ENOMEM;