android_kernel_sony_sdm845/drivers/of
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Stefan M Schaeckeler f92ec84c49 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:23:08 +02:00
..
unittest-data
address.c of: fix sparse warning in of_pci_range_parser_one 2017-05-25 15:44:37 +02:00
base.c OF: Prevent unaligned access in of_alias_scan() 2018-04-29 11:31:57 +02:00
device.c of: fix of_device_get_modalias returned length when truncating buffers 2018-03-22 09:17:41 +01:00
dynamic.c of: use pr_fmt prefix for all console printing 2016-07-18 16:57:42 -05:00
fdt.c earlycon: Use a pointer table to fix __earlycon_table stride 2018-05-01 15:13:09 -07:00
fdt_address.c of: use pr_fmt prefix for all console printing 2016-07-18 16:57:42 -05:00
irq.c of/irq: Break out msi-map lookup (again) 2016-09-16 09:34:14 +01:00
Kconfig mtd: Kill the OF_MTD Kconfig option 2016-09-23 09:35:16 +02:00
Makefile MTD updates for v4.7: 2016-05-24 11:00:20 -07:00
of_mdio.c of_mdio: add helper to deregister fixed-link PHYs 2016-11-29 23:17:02 -05:00
of_net.c
of_numa.c of: fix "/cpus" reference leak in of_numa_parse_cpu_nodes() 2017-05-25 15:44:37 +02:00
of_pci.c of/irq: Break out msi-map lookup (again) 2016-09-16 09:34:14 +01:00
of_pci_irq.c of_pci_irq: Silence bogus "of_irq_parse_pci() failed ..." messages. 2015-09-17 14:46:11 -05:00
of_private.h of: fix memory leak related to safe_name() 2016-06-24 15:16:10 -05:00
of_reserved_mem.c DeviceTree update for 4.8: 2016-07-30 11:32:01 -07:00
overlay.c of: use pr_fmt prefix for all console printing 2016-07-18 16:57:42 -05:00
pdt.c
platform.c Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus 2016-10-15 09:26:12 -07:00
resolver.c of: overlay: add resolver error prints 2016-07-18 17:18:36 -05:00
unittest.c of: unittest: for strings, account for trailing \0 in property length field 2018-07-03 11:23:08 +02:00