diff options
| author | Heinrich Schuchardt <[email protected]> | 2022-12-08 02:14:20 +0100 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2022-12-09 11:26:39 +0530 |
| commit | c2be21432c00840e6b2d2e5cdc668b5ee6180738 (patch) | |
| tree | 14bd2031bd2be1243505d82e863f2209d1113a15 /scripts | |
| parent | 8b00be692740736e989776b312c87dc9c0b403c8 (diff) | |
lib: fix __fdt_parse_region()
If fdt_getprop() returns NULL, this indicates an error. In this case lenp
is set to an error code. But even if lenp = 0 we should not continue.
If fdt_getprop() returns a wider value than we expect this is a separate
error condition.
In both cases the device-tree is invalid.
Addresses-Coverity-ID: 1529703 ("Dereference after null check")
Signed-off-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Xiang W <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
