summaryrefslogtreecommitdiff
path: root/fdt_ro.c
diff options
context:
space:
mode:
Diffstat (limited to 'fdt_ro.c')
-rw-r--r--fdt_ro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fdt_ro.c b/fdt_ro.c
index bd58227..1b2383c 100644
--- a/fdt_ro.c
+++ b/fdt_ro.c
@@ -193,7 +193,7 @@ struct fdt_property *fdt_get_property(const struct fdt_header *fdt,
/* Found it! */
int len = fdt32_to_cpu(prop->len);
prop = fdt_offset_ptr(fdt, offset,
- sizeof(prop)+len);
+ sizeof(*prop)+len);
if (! prop)
return PTR_ERROR(FDT_ERR_BADSTRUCTURE);