mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
Merge branch 'dt/linus' into HEAD
This commit is contained in:
commit
362ce2b8e5
1 changed files with 3 additions and 0 deletions
|
|
@ -140,6 +140,9 @@ void of_populate_phandle_cache(void)
|
|||
if (np->phandle && np->phandle != OF_PHANDLE_ILLEGAL)
|
||||
phandles++;
|
||||
|
||||
if (!phandles)
|
||||
goto out;
|
||||
|
||||
cache_entries = roundup_pow_of_two(phandles);
|
||||
phandle_cache_mask = cache_entries - 1;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue