Re: [PATCH v2 2/6] scsi: ufs: Avoid NULL CQE dereference when reporting invalid tags

From: Peter Wang (王信友)

Date: Mon Jul 20 2026 - 05:29:28 EST


On Fri, 2026-07-17 at 23:39 +0800, Li Qiang wrote:
> The single-doorbell completion path can call ufshcd_compl_one_cqe()
> with
>
> a NULL CQE. If no command is associated with the completion tag, the
>
> warning message dereferences the CQE while reporting the error.
>
> Avoid that dereference and include the invalid tag in the warning.
>
> Fixes: 22089c218037 ("scsi: ufs: core: Optimize the hot path")
> Signed-off-by: Li Qiang <liqiang01@xxxxxxxxxx>
> ---

Reviewed-by: Peter Wang <peter.wang@xxxxxxxxxxxx>