Fix incorrect initialization of scst_mgmt_cmd_stub structure
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Wed, 16 Dec 2009 19:24:42 +0000 (19:24 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Wed, 16 Dec 2009 19:24:42 +0000 (19:24 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1400 d57e44dd-8a1f-0410-8b47-8ef2f437770f

scst/src/scst_targ.c

index 314c389..47037c2 100644 (file)
@@ -4091,7 +4091,7 @@ void scst_abort_cmd(struct scst_cmd *cmd, struct scst_mgmt_cmd *mcmd,
                                "stub failed (mcmd %p, cmd %p)", mcmd, cmd);
                        goto unlock;
                }
-               memset(mstb, 0, sizeof(mstb));
+               memset(mstb, 0, sizeof(*mstb));
 
                mstb->mcmd = mcmd;