diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index 84b4996a2..4f3953354 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -3749,6 +3749,7 @@ static struct scst_cmd *scst_create_prepare_internal_cmd( res->tgtt = orig_cmd->tgtt; res->tgt = orig_cmd->tgt; res->dev = orig_cmd->dev; + res->devt = orig_cmd->devt; res->tgt_dev = orig_cmd->tgt_dev; res->lun = orig_cmd->lun; res->queue_type = SCST_CMD_QUEUE_HEAD_OF_QUEUE;