fsi: occ: Fix checksum failure mode
authorEddie James <eajames@linux.ibm.com>
Tue, 26 Apr 2022 15:49:55 +0000 (10:49 -0500)
committerJoel Stanley <joel@jms.id.au>
Tue, 27 Sep 2022 07:27:17 +0000 (16:57 +0930)
commit7326939faa4b8d078dd2b8cddc36b5758d9b984c
tree7497e7463d3afba847aee2bbd0249f443244dd52
parentf157555ea3b0f1f7ff19ca7d52576ab231fabfad
fsi: occ: Fix checksum failure mode

Change the checksum errno to something different than the errno
used for a bad SBE message. In addition, don't set the user's
response length to the data length in this case, since it's not
SBE FFDC.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20220426154956.27205-2-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
drivers/fsi/fsi-occ.c