Deny ANCHOR flag set without UNMAP flag set in WRITE SAME commands.
This commit is contained in:
parent
090817577b
commit
227b3b9229
@ -5987,8 +5987,9 @@ ctl_write_same(struct ctl_scsiio *ctsio)
|
||||
break; /* NOTREACHED */
|
||||
}
|
||||
|
||||
/* NDOB flag can be used only together with UNMAP */
|
||||
if ((byte2 & (SWS_NDOB | SWS_UNMAP)) == SWS_NDOB) {
|
||||
/* NDOB and ANCHOR flags can be used only together with UNMAP */
|
||||
if ((byte2 & SWS_UNMAP) == 0 &&
|
||||
(byte2 & (SWS_NDOB | SWS_ANCHOR)) != 0) {
|
||||
ctl_set_invalid_field(ctsio, /*sks_valid*/ 1,
|
||||
/*command*/ 1, /*field*/ 1, /*bit_valid*/ 1, /*bit*/ 0);
|
||||
ctl_done((union ctl_io *)ctsio);
|
||||
|
Loading…
Reference in New Issue
Block a user