Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block
* 'for-linus' of git://git.kernel.dk/linux-2.6-block: scsi: missing add of padded bytes to io completion byte count
This commit is contained in:
commit
6275487806
|
@ -757,7 +757,7 @@ void scsi_finish_command(struct scsi_cmnd *cmd)
|
||||||
"Notifying upper driver of completion "
|
"Notifying upper driver of completion "
|
||||||
"(result %x)\n", cmd->result));
|
"(result %x)\n", cmd->result));
|
||||||
|
|
||||||
good_bytes = scsi_bufflen(cmd);
|
good_bytes = scsi_bufflen(cmd) + cmd->request->extra_len;
|
||||||
if (cmd->request->cmd_type != REQ_TYPE_BLOCK_PC) {
|
if (cmd->request->cmd_type != REQ_TYPE_BLOCK_PC) {
|
||||||
drv = scsi_cmd_to_driver(cmd);
|
drv = scsi_cmd_to_driver(cmd);
|
||||||
if (drv->done)
|
if (drv->done)
|
||||||
|
|
Loading…
Reference in a new issue