Merge Android 13 QPR1

Bug: 261731544
Merged-In: I14ab0a074ab994c1f598243d2d5795d2cd9a853a
Change-Id: I26650c5f0a4d98796dd1a9a8709ba704350b5492
This commit is contained in:
Xin Li 2022-12-09 10:28:56 -08:00
commit 82a38bf553

View file

@ -255,6 +255,12 @@ int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen)
FDT_RO_PROBE(fdt);
if (namelen < 1)
return -FDT_ERR_BADPATH;
if (namelen < 1)
return -FDT_ERR_BADPATH;
/* see if we have an alias */
if (*path != '/') {
const char *q = memchr(path, '/', end - p);