diff options
| author | Niklas Cassel <cassel@kernel.org> | 2026-11-16 20:10:09 +0100 |
|---|---|---|
| committer | Niklas Cassel <cassel@kernel.org> | 2026-11-17 11:10:47 +0100 |
| commit | e2954988bb987c1432806379f602573d2388df93 (patch) | |
| tree | 35fca68aa18cde6c3b9cde27e9ae6e4774e84179 /rust/kernel/alloc/allocator | |
| parent | 9016b8b9e80d3d340b4ad83d457501e944834538 (diff) | |
ata: libata-scsi: fix the INC_512 bit test for SECURITY PROTOCOL IN/OUT
ata_scsi_security_inout_xlat() tests the INC_512 bit with cdb[4] & 7.
INC_512 is bit 7 of byte 4 of the SECURITY PROTOCOL IN and SECURITY
PROTOCOL OUT CDBs (SPC-6, tables 280 and 282), and bits 6:0 of that
byte are reserved.
Test bit 7 instead.
Fixes: 818831c8b22f ("libata: implement SECURITY PROTOCOL IN/OUT")
Cc: stable@vger.kernel.org
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20261116191008.2954277-2-cassel@kernel.org
Signed-off-by: Niklas Cassel <cassel@kernel.org>
Diffstat (limited to 'rust/kernel/alloc/allocator')
0 files changed, 0 insertions, 0 deletions
