aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_xarray.c
diff options
context:
space:
mode:
authorXiang Chen <[email protected]>2020-01-09 01:12:24 +0000
committerMartin K. Petersen <[email protected]>2020-01-10 06:28:56 +0000
commit465f4edaecc6c37f81349233e84d46246bcac11a (patch)
tree66f5d504778166f62f25fb0bc8c7d0e5491b92de /lib/test_xarray.c
parentscsi: target/iblock: Fix protection error with blocks greater than 512B (diff)
downloadkernel-465f4edaecc6c37f81349233e84d46246bcac11a.tar.gz
kernel-465f4edaecc6c37f81349233e84d46246bcac11a.zip
scsi: sd: Clear sdkp->protection_type if disk is reformatted without PI
If an attached disk with protection information enabled is reformatted to Type 0 the revalidation code does not clear the original protection type and subsequent accesses will keep setting RDPROTECT/WRPROTECT. Set the protection type to 0 if the disk reports PROT_EN=0 in READ CAPACITY(16). [mkp: commit desc] Fixes: fe542396da73 ("[SCSI] sd: Ensure we correctly disable devices with unknown protection type") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Xiang Chen <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/test_xarray.c')
0 files changed, 0 insertions, 0 deletions