Skip to content

Commit 362ce2b

Browse files
committed
Merge branch 'dt/linus' into HEAD
2 parents 00b7d1c + e54192b commit 362ce2b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎drivers/of/base.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ void of_populate_phandle_cache(void)
140140
if (np->phandle && np->phandle != OF_PHANDLE_ILLEGAL)
141141
phandles++;
142142

143+
if (!phandles)
144+
goto out;
145+
143146
cache_entries = roundup_pow_of_two(phandles);
144147
phandle_cache_mask = cache_entries - 1;
145148

0 commit comments

Comments
 (0)