On 9/12/24 6:27 AM, Peter Wang (王信友) wrote:
On Wed, 2024-09-11 at 17:30 -0700, Bart Van Assche wrote:@@ -5462,10 +5462,13 @@ static irqreturn_t ufshcd_uic_cmd_compl(struct ufs_hba *hba, u32 intr_status)spin_lock(hba->host->host_lock);cmd = hba->active_uic_cmd; + if (!cmd) + goto unlock; +Could add a warning line in this case? WARN_ON(!cmd); I'm worried that if this situation occurs, we won't have enough information to debug.
I will do that. Thanks, Bart.