> + if (WARN_ON_ONCE(!sess))
> + continue;
> +
> + spin_lock(&sess->sess_cmd_lock);
> spin_lock(&cmd->t_state_lock);
> if (!(cmd->transport_state & CMD_T_ACTIVE)) {
> spin_unlock(&cmd->t_state_lock);
> +
From: Nicholas Bellinger
This patch fixes a NULL pointer se_cmd->cmd_kref < 0
refcount bug during TMR LUN_RESET with active TMRs,
triggered during se_cmd + se_tmr_req descriptor
shutdown + release via core_tmr_drain_tmr_list().
To address this bug, go ahead and obtain a local
kref_get_unless_zer
2 matches
Mail list logo