android_kernel_samsung_univ.../drivers/of
Stefan M Schaeckeler 548de4fd7b of: unittest: for strings, account for trailing \0 in property length field
commit 3b9cf7905fe3ab35ab437b5072c883e609d3498d upstream.

For strings, account for trailing \0 in property length field:

This is consistent with how dtc builds string properties.

Function __of_prop_dup() would misbehave on such properties as it duplicates
properties based on the property length field creating new string values
without trailing \0s.

Signed-off-by: Stefan M Schaeckeler <sschaeck@cisco.com>
Reviewed-by: Frank Rowand <frank.rowand@sony.com>
Tested-by: Frank Rowand <frank.rowand@sony.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-07-03 11:21:29 +02:00
..
unittest-data
address.c of: fix sparse warning in of_pci_range_parser_one 2017-05-25 14:30:10 +02:00
base.c of: fix reference counting in of_graph_get_endpoint_by_regs 2016-09-07 08:32:41 +02:00
device.c of: fix of_device_get_modalias returned length when truncating buffers 2018-03-22 09:23:21 +01:00
dynamic.c
fdt_address.c
fdt.c of: Add check to of_scan_flat_dt() before accessing initial_boot_params 2017-06-29 12:48:52 +02:00
irq.c
Kconfig
Makefile
of_mdio.c
of_mtd.c
of_net.c
of_pci_irq.c
of_pci.c
of_private.h
of_reserved_mem.c of: silence warnings due to max() usage 2016-11-15 07:46:39 +01:00
overlay.c
pdt.c
platform.c
resolver.c
unittest.c of: unittest: for strings, account for trailing \0 in property length field 2018-07-03 11:21:29 +02:00