From: tangwenji <tang.wenji@xxxxxxxxxx> Signed-off-by: tangwenji <tang.wenji@xxxxxxxxxx> --- drivers/target/target_core_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/target/target_core_user.c b/drivers/target/target_core_user.c index 5831e0e..bb5d85d 100644 --- a/drivers/target/target_core_user.c +++ b/drivers/target/target_core_user.c @@ -1616,7 +1616,7 @@ static void tcmu_dev_call_rcu(struct rcu_head *p) static int tcmu_check_and_free_pending_cmd(struct tcmu_cmd *cmd) { if (test_bit(TCMU_CMD_BIT_EXPIRED, &cmd->flags)) { - kmem_cache_free(tcmu_cmd_cache, cmd); + tcmu_free_cmd(cmd); return 0; } return -EINVAL; -- 2.5.0.windows.1