diff options
author | Simon Glass <sjg@chromium.org> | 2017-03-28 10:23:31 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-04-10 13:25:19 -0600 |
commit | 92688a09937236dc56c72cae8829cc3a4864c061 (patch) | |
tree | e3fe769244bcc287805e32089aa606fd28a7a34d /lib/libfdt/fdt_rw.c | |
parent | 01cce5fdd098add2b8aa570468cb35fca5d778fe (diff) | |
download | u-boot-92688a09937236dc56c72cae8829cc3a4864c061.tar.gz |
fdt: Bring in changes from v1.4.4
This a few minor changes down from upstream since the last sync.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/libfdt/fdt_rw.c')
-rw-r--r-- | lib/libfdt/fdt_rw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libfdt/fdt_rw.c b/lib/libfdt/fdt_rw.c index 87d4030fb1..80a3212141 100644 --- a/lib/libfdt/fdt_rw.c +++ b/lib/libfdt/fdt_rw.c @@ -242,7 +242,8 @@ int fdt_setprop(void *fdt, int nodeoffset, const char *name, if (err) return err; - memcpy(prop->data, val, len); + if (len) + memcpy(prop->data, val, len); return 0; } |