diff --git a/scst/src/scst_targ.c b/scst/src/scst_targ.c index 5ca787b74..282e56724 100644 --- a/scst/src/scst_targ.c +++ b/scst/src/scst_targ.c @@ -558,6 +558,8 @@ static void __scst_rx_cmd(struct scst_cmd *cmd, struct scst_session *sess, { TRACE_ENTRY(); + WARN_ON_ONCE(cmd->cpu_cmd_counter); + cmd->sess = sess; scst_sess_get(sess);