diff --git a/drivers/target/target_core_user.c b/drivers/target/target_core_user.c index 1bf1d37aa2e3..2e331008d30b 100644 --- a/drivers/target/target_core_user.c +++ b/drivers/target/target_core_user.c @@ -686,8 +686,6 @@ static int tcmu_check_expired_cmd(int id, void *p, void *data) target_complete_cmd(cmd->se_cmd, SAM_STAT_CHECK_CONDITION); cmd->se_cmd = NULL; - kmem_cache_free(tcmu_cmd_cache, cmd); - return 0; }