diff options
Diffstat (limited to 'drivers/of/base.c')
-rw-r--r-- | drivers/of/base.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c index 06e37b0fca..80465d6d50 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -2285,6 +2285,8 @@ int of_property_sprintf(struct device_node *np, if (len < 0) return -ENOMEM; + len++; /* trailing NUL */ + pp = of_find_property(np, propname, NULL); of_delete_property(pp); |