diff options
-rw-r--r-- | drivers/of/base.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c index 5c5427918eb2..bf8432f580f6 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c | |||
@@ -1629,6 +1629,7 @@ void of_alias_scan(void * (*dt_alloc)(u64 size, u64 align)) | |||
1629 | ap = dt_alloc(sizeof(*ap) + len + 1, 4); | 1629 | ap = dt_alloc(sizeof(*ap) + len + 1, 4); |
1630 | if (!ap) | 1630 | if (!ap) |
1631 | continue; | 1631 | continue; |
1632 | memset(ap, 0, sizeof(*ap) + len + 1); | ||
1632 | ap->alias = start; | 1633 | ap->alias = start; |
1633 | of_alias_add(ap, np, id, start, len); | 1634 | of_alias_add(ap, np, id, start, len); |
1634 | } | 1635 | } |