Fix incorrect completion function dereference.

Reported by Thomas Lau <Thomas.Lau@principleone.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4404 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2012-07-13 21:39:30 +00:00
parent bbc726fdea
commit 260c6cb1f8

View File

@@ -4846,7 +4846,7 @@ int scst_finish_internal_cmd(struct scst_cmd *cmd)
if (cmd->cdb[0] == REQUEST_SENSE)
scst_complete_request_sense(cmd);
else {
scst_i_finish_fn_t f = cmd->tgt_i_priv;
scst_i_finish_fn_t f = (void *) *((unsigned long long **)cmd->tgt_i_priv);
f(cmd);
}