mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
utilfdt_read: pass back up the length of data read
For a follow up commit, we want to be able to scan the buffer that was returned to us. In order to do that safely, we need to know how big the buffer actually is, so pass that back if requested. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
f8cb5dd949
commit
cc2c178727
5 changed files with 12 additions and 8 deletions
2
fdtput.c
2
fdtput.c
|
@ -239,7 +239,7 @@ static int do_fdtput(struct display_info *disp, const char *filename,
|
|||
char *blob;
|
||||
int len, ret = 0;
|
||||
|
||||
blob = utilfdt_read(filename);
|
||||
blob = utilfdt_read(filename, NULL);
|
||||
if (!blob)
|
||||
return -1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue