mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-21 20:51:27 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user