diff options
-rw-r--r-- | drivers/scsi/scsi_lib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 277f1b64e9ac..47d3cdd6ddf1 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c | |||
@@ -449,6 +449,7 @@ EXPORT_SYMBOL_GPL(scsi_execute_async); | |||
449 | static void scsi_init_cmd_errh(struct scsi_cmnd *cmd) | 449 | static void scsi_init_cmd_errh(struct scsi_cmnd *cmd) |
450 | { | 450 | { |
451 | cmd->serial_number = 0; | 451 | cmd->serial_number = 0; |
452 | cmd->resid = 0; | ||
452 | memset(cmd->sense_buffer, 0, sizeof cmd->sense_buffer); | 453 | memset(cmd->sense_buffer, 0, sizeof cmd->sense_buffer); |
453 | if (cmd->cmd_len == 0) | 454 | if (cmd->cmd_len == 0) |
454 | cmd->cmd_len = COMMAND_SIZE(cmd->cmnd[0]); | 455 | cmd->cmd_len = COMMAND_SIZE(cmd->cmnd[0]); |