diff options
| author | Stefan M Schaeckeler <sschaeck@cisco.com> | 2018-05-21 16:26:14 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-03 11:21:29 +0200 |
| commit | 548de4fd7b8c80cfb7f8c484b8ec1dc57376d9e8 (patch) | |
| tree | d1f4d46eebbf3b77bc89e3950f46f54f6cca80b4 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 523dc24bc52fa17adcd798e4a5b65b527e192f2b (diff) | |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
