Merge Android 13 QPR1
Bug: 261731544 Merged-In: I14ab0a074ab994c1f598243d2d5795d2cd9a853a Change-Id: I26650c5f0a4d98796dd1a9a8709ba704350b5492
This commit is contained in:
commit
82a38bf553
1 changed files with 6 additions and 0 deletions
|
@ -255,6 +255,12 @@ int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen)
|
||||||
|
|
||||||
FDT_RO_PROBE(fdt);
|
FDT_RO_PROBE(fdt);
|
||||||
|
|
||||||
|
if (namelen < 1)
|
||||||
|
return -FDT_ERR_BADPATH;
|
||||||
|
|
||||||
|
if (namelen < 1)
|
||||||
|
return -FDT_ERR_BADPATH;
|
||||||
|
|
||||||
/* see if we have an alias */
|
/* see if we have an alias */
|
||||||
if (*path != '/') {
|
if (*path != '/') {
|
||||||
const char *q = memchr(path, '/', end - p);
|
const char *q = memchr(path, '/', end - p);
|
||||||
|
|
Loading…
Reference in a new issue