Merge pull request #271 from SexyC/master

Fix the 0 blocks writesame failed when target claims supporting maxim…
This commit is contained in:
Ronnie Sahlberg
2018-10-02 06:45:14 +10:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -53,7 +53,7 @@ test_writesame10_0blocks(void)
return;
}
if (inq_bl->max_ws_len > 0 && num_blocks >= inq_bl->max_ws_len) {
if (inq_bl->max_ws_len > 0 && num_blocks > inq_bl->max_ws_len) {
WRITESAME10(sd, 0, block_size, 0, 0, 0, 0, 0, scratch,
EXPECT_INVALID_FIELD_IN_CDB);
} else {

View File

@@ -48,7 +48,7 @@ test_writesame16_0blocks(void)
}
if (inq_bl->max_ws_len > 0 && num_blocks >= inq_bl->max_ws_len) {
if (inq_bl->max_ws_len > 0 && num_blocks > inq_bl->max_ws_len) {
WRITESAME16(sd, 0, block_size, 0, 0, 0, 0, 0, scratch,
EXPECT_INVALID_FIELD_IN_CDB);
} else {