diff options
| author | Heiko Carstens <[email protected]> | 2017-08-03 14:27:30 +0200 |
|---|---|---|
| committer | Christian Borntraeger <[email protected]> | 2017-08-21 15:34:54 +0200 |
| commit | 857b8de96795646c5891cf44ae6fb19b9ff74bf9 (patch) | |
| tree | 3afa2096610f6a5f76f8234c0e10ee3233003c71 /drivers/scsi/mpt3sas/mpi/mpi2_raid.h | |
| parent | 4a4eefcd0e49f9f339933324c1bde431186a0a7d (diff) | |
KVM: s390: sthyi: fix specification exception detection
sthyi should only generate a specification exception if the function
code is zero and the response buffer is not on a 4k boundary.
The current code would also test for unknown function codes if the
response buffer, that is currently only defined for function code 0,
is not on a 4k boundary and incorrectly inject a specification
exception instead of returning with condition code 3 and return code 4
(unsupported function code).
Fix this by moving the boundary check.
Fixes: 95ca2cb57985 ("KVM: s390: Add sthyi emulation")
Cc: <[email protected]> # 4.8+
Reviewed-by: Janosch Frank <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Reviewed-by: Cornelia Huck <[email protected]>
Signed-off-by: Christian Borntraeger <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt3sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions