Commit ee99c100 authored by Patrick Mansfield's avatar Patrick Mansfield Committed by James Bottomley

[PATCH] don't set underflow for REQ_BLOCK_PC

I got underflow warnings and failures when sending an INQUIRY page 0x83
via the SG_IO REQ_BLOCK_PC interface.

The underflow field should only be set if we know for certain the size of
the data being transfered, so fix this by leaving it at zero for scsi
REQ_BLOCK_PC cases.
parent 3f65bcdb
......@@ -174,7 +174,6 @@ static int sd_init_command(struct scsi_cmnd * SCpnt)
timeout = rq->timeout;
SCpnt->transfersize = rq->data_len;
SCpnt->underflow = rq->data_len;
goto queue;
}
......
......@@ -301,7 +301,6 @@ static int sr_init_command(struct scsi_cmnd * SCpnt)
timeout = rq->timeout;
SCpnt->transfersize = rq->data_len;
SCpnt->underflow = rq->data_len;
goto queue;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment