diff --git a/scst/src/scst_targ.c b/scst/src/scst_targ.c index af1940804..61564214d 100644 --- a/scst/src/scst_targ.c +++ b/scst/src/scst_targ.c @@ -1560,6 +1560,8 @@ static int scst_tgt_pre_exec(struct scst_cmd *cmd) */ scst_set_cmd_error(cmd, SCST_LOAD_SENSE(scst_sense_invalid_field_in_command_information_unit)); + scst_set_cmd_abnormal_done_state(cmd); + goto out; } } }