mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-11 15:34:55 +00:00
upl: fix parsing of DT property
When calling decode_addr_size() we must pass the size of the device-tree
property and not sizeof(void *).
Fixes: 90469da3da
("upl: Add support for reading a upl handoff")
Addresses-Coverity-ID: 510459 Wrong sizeof argument
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
504f36ed7a
commit
b891826067
1 changed files with 1 additions and 1 deletions
|
@ -520,7 +520,7 @@ static int decode_upl_graphics(struct upl *upl, ofnode node)
|
|||
return log_msg_ret("reg", -EINVAL);
|
||||
}
|
||||
|
||||
len = decode_addr_size(upl, buf, sizeof(buf), &gra->reg);
|
||||
len = decode_addr_size(upl, buf, size, &gra->reg);
|
||||
if (len < 0)
|
||||
return log_msg_ret("buf", len);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue