diff options
Diffstat (limited to 'drivers/scsi/scsi.c')
-rw-r--r-- | drivers/scsi/scsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c index 3d8d2153b448..7bfbcfa7af40 100644 --- a/drivers/scsi/scsi.c +++ b/drivers/scsi/scsi.c | |||
@@ -238,7 +238,7 @@ void scsi_finish_command(struct scsi_cmnd *cmd) | |||
238 | "(result %x)\n", cmd->result)); | 238 | "(result %x)\n", cmd->result)); |
239 | 239 | ||
240 | good_bytes = scsi_bufflen(cmd); | 240 | good_bytes = scsi_bufflen(cmd); |
241 | if (cmd->request->cmd_type != REQ_TYPE_BLOCK_PC) { | 241 | if (!blk_rq_is_passthrough(cmd->request)) { |
242 | int old_good_bytes = good_bytes; | 242 | int old_good_bytes = good_bytes; |
243 | drv = scsi_cmd_to_driver(cmd); | 243 | drv = scsi_cmd_to_driver(cmd); |
244 | if (drv->done) | 244 | if (drv->done) |