]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
fdt
authorVladimir Serbinenko <phcoder@gmail.com>
Sat, 20 Feb 2016 23:05:21 +0000 (00:05 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Sat, 20 Feb 2016 23:05:21 +0000 (00:05 +0100)
grub-core/lib/fdt.c

index bcff081317e5055d977ae1279cbf07e715883d16..7e1c897ff43e26f8f83311ca635856d153f1f61a 100644 (file)
@@ -425,7 +425,7 @@ grub_fdt_get_prop (const void *fdt, unsigned int nodeoffset, const char *name,
   if (!prop)
     return 0;
   if (len)
-    *len = grub_be_to_cpu32 (*(prop + 2));
+    *len = grub_be_to_cpu32 (*(prop + 1));
   return prop + 3;
 }