diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index f54a53086c9d3b6fab107b4aaf870a97ad0f43a9..fe0b7dff02b4af1d6ddc15deb261555cff2bdb9f 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -758,7 +758,7 @@ static int sd_setup_discard_cmnd(struct scsi_cmnd *cmd) rq->timeout = SD_TIMEOUT; cmd->transfersize = len; - cmd->allowed = rq->retries; + cmd->allowed = SD_MAX_RETRIES; /* * Initially __data_len is set to the amount of data that needs to be