mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-18 21:26:31 +00:00
scst_targ: Add a consistency check in __scst_rx_cmd()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8029 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user