RE: [PATCH] scsi: cxgbi: fix retry_timer use-after-free on adapter detach

From: Varun Prakash

Date: Thu Aug 13 2026 - 10:54:44 EST



>@@ -1001,6 +1001,15 @@ static void csk_act_open_retry_timer(struct timer_list *t)
> cxgbi_sock_get(csk);
> spin_lock_bh(&csk->lock);
>
>+ if (cxgbi_sock_flag(csk, CTPF_OFFLOAD_DOWN)) {
>+ spin_unlock_bh(&csk->lock);
>+ cxgbi_sock_put(csk);
>+ return;
>+ }
>+
>+ lldi = cxgbi_cdev_priv(csk->cdev);
>+ t4 = is_t4(lldi->adapter_type);
>+

With this patch csk->cdev will always be valid, so there is no need to
move these assignments here.

Thanks for the patch, please send v2 without lldi and t4 assignment change.