diff options
author | Shannon Nelson <snelson@pensando.io> | 2021-10-01 11:05:52 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-02 14:00:21 +0100 |
commit | 36b20b7fb1c3cba2334f772face5f42f8e644a8f (patch) | |
tree | 6d6ff95657a1c06e754cf0f19157bccd4509fde5 /drivers/opp | |
parent | ionic: remove debug stats (diff) | |
download | linux-dev-36b20b7fb1c3cba2334f772face5f42f8e644a8f.tar.xz linux-dev-36b20b7fb1c3cba2334f772face5f42f8e644a8f.zip |
ionic: check for binary values in FW ver string
If the PCI connection is broken, reading the FW version string
will only get 0xff bytes, which shouldn't get printed. This
checks the first byte and prints only the first 4 bytes
if non-ASCII.
Also, add a limit to the string length printed when a valid
string is found, just in case it is not properly terminated.
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/opp')
0 files changed, 0 insertions, 0 deletions