diff --git a/drivers/of/base.c b/drivers/of/base.c index 5c5427918eb2f54b6a22d766aa7e697ca21c7666..bf8432f580f6e0ede360215d885154c0c5496f23 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)) ap = dt_alloc(sizeof(*ap) + len + 1, 4); if (!ap) continue; + memset(ap, 0, sizeof(*ap) + len + 1); ap->alias = start; of_alias_add(ap, np, id, start, len); }