Re: [PATCH] scsi: ufs: core: fix NULL deref in remaining scsi_cmd_priv() callers
From: Stanley Jhu
Date: Mon Oct 26 2026 - 10:25:37 EST
On Mon, Oct 26, 2026 at 04:47:38PM +0800, shao.mingyin@xxxxxxxxxx wrote:
- ufshcd_compl_one_cqe(): scsi_cmd_priv(cmd) runs before the !cmd check.
- ufshcd_mcq_sq_cleanup(): scsi_cmd_priv(cmd) and scsi_cmd_to_rq(cmd)
run before the !cmd check.
- ufshcd_issue_devman_upiu_cmd(): scsi_cmd_priv(cmd) runs before the
WARN_ON_ONCE(!cmd) check.
ufshcd_exec_dev_cmd() has the same pattern: scsi_cmd_priv(cmd) runs
before WARN_ON_ONCE(!cmd). Could you cover it in this patch too?