mach-snapdragon: of_fixup: fix property length at writing
authorRui Miguel Silva <rui.silva@linaro.org>
Thu, 27 Feb 2025 09:45:49 +0000 (09:45 +0000)
committerCaleb Connolly <caleb.connolly@linaro.org>
Thu, 10 Apr 2025 13:43:09 +0000 (15:43 +0200)
commit1542c090ee0081abbb126c31f9a12cb3afe86ad8
treedbe95cc907741449337fd72682f2421493ce02cc
parent32ad75f7873cd05800a6ec1be9c5abcd5c9dcd35
mach-snapdragon: of_fixup: fix property length at writing

The length of a property includes '\0' in a string type one, so
the length passed by needs to have that in account, if not,
when getting the property value it will fail because it
has the wrong size.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Tested-by: caleb.connolly@linaro.org # db845c
Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20250227094911.497219-2-rui.silva@linaro.org
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
arch/arm/mach-snapdragon/of_fixup.c