summaryrefslogtreecommitdiff
path: root/fdtput.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-04-10 14:29:07 -0400
committerJon Loeliger <jdl@jdl.com>2013-04-21 14:23:32 -0500
commitcc2c178727cdeca4eb9756637c2e09e50e0856e7 (patch)
treee5d048e177cd803b9416307fc4ab1993f2c06d12 /fdtput.c
parentf8cb5dd94903a5cfa1609695328b8f1d5557367f (diff)
downloaddtc-cc2c178727cdeca4eb9756637c2e09e50e0856e7.tar.gz
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>
Diffstat (limited to 'fdtput.c')
-rw-r--r--fdtput.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fdtput.c b/fdtput.c
index f2197f5..572d6da 100644
--- a/fdtput.c
+++ b/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;