diff options
| author | 2018-05-21 16:26:14 -0700 | |
|---|---|---|
| committer | 2018-05-22 12:27:28 -0500 | |
| commit | 3b9cf7905fe3ab35ab437b5072c883e609d3498d (patch) | |
| tree | fde01d816d211ba02040f0e5fec62d5b338b2a43 /lib/mpi/mpi-internal.h | |
| parent | drm: rcar-du: disable dtc graph-endpoint warnings on DT overlays (diff) | |
| download | wireguard-linux-3b9cf7905fe3ab35ab437b5072c883e609d3498d.tar.xz wireguard-linux-3b9cf7905fe3ab35ab437b5072c883e609d3498d.zip | |
of: unittest: for strings, account for trailing \0 in property length field
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>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions
