diff options
| author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2018-06-26 16:50:51 +0530 |
|---|---|---|
| committer | Stewart Smith <stewart@linux.ibm.com> | 2018-06-27 17:19:01 +1000 |
| commit | 77f510d35e8d60faed989496fac2de16663ff332 (patch) | |
| tree | 096032d25603075c414140cce194c664770e4408 /hdata/test | |
| parent | af1cbe34c85d9a6c9f4669ecd6fa91aaa1366c27 (diff) | |
| download | blackbird-skiboot-77f510d35e8d60faed989496fac2de16663ff332.tar.gz blackbird-skiboot-77f510d35e8d60faed989496fac2de16663ff332.zip | |
vpd: Sanitize VPD data
On OpenPower system, VPD keyword size tells us the maximum size of the data.
But they fill trailing end with space (0x20) instead of NULL. Also spec
doesn't stop user to have space (0x20) within actual data.
This patch discards trailing spaces before populating device tree.
Reported-by: Pridhiviraj Paidipeddi <ppaidipe@linux.vnet.ibm.com>
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
[stewart: fixup make check]
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hdata/test')
| -rw-r--r-- | hdata/test/p8-840-spira.dts | 2 | ||||
| -rw-r--r-- | hdata/test/p81-811.spira.dts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/hdata/test/p8-840-spira.dts b/hdata/test/p8-840-spira.dts index e73c691d..428683b1 100644 --- a/hdata/test/p8-840-spira.dts +++ b/hdata/test/p8-840-spira.dts @@ -900,7 +900,7 @@ card-type = [80 b5 00]; hw-characteristics = [00]; ccin = "2B08"; - description = "CEC OP PANEL "; + description = "CEC OP PANEL"; }; power-supply@3102 { diff --git a/hdata/test/p81-811.spira.dts b/hdata/test/p81-811.spira.dts index 2ca361ee..800468e3 100644 --- a/hdata/test/p81-811.spira.dts +++ b/hdata/test/p81-811.spira.dts @@ -2119,7 +2119,7 @@ card-type = [80 b5 00]; hw-characteristics = [00]; ccin = "2B08"; - description = "CEC OP PANEL "; + description = "CEC OP PANEL"; }; power-supply@3100 { |

