Commit fc84fa92 authored by Chenyuan Yang's avatar Chenyuan Yang Committed by Giuliano Procida
Browse files

UPSTREAM: scsi: ufs: core: Add NULL check in ufshcd_mcq_compl_pending_transfer()



Add a NULL check for the returned hwq pointer by ufshcd_mcq_req_to_hwq().

This is similar to the fix in commit 74736103 ("scsi: ufs: core: Fix
ufshcd_abort_one racing issue").

Bug: 448465817
Signed-off-by: default avatarChenyuan Yang <chenyuan0y@gmail.com>
Link: https://lore.kernel.org/r/20250412195909.315418-1-chenyuan0y@gmail.com


Fixes: ab248643 ("scsi: ufs: core: Add error handling for MCQ mode")
Reviewed-by: default avatarPeter Wang <peter.wang@mediatek.com>
Reviewed-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Bug: 446695509
(cherry picked from commit 08a966a9)
Signed-off-by: default avatarBart Van Assche <bvanassche@google.com>
Cherrypick-From: https://android-review.googlesource.com/q/commit:59ad607e15a1b220d1ea9915879b370ee1ed6fee
Merged-In: Iaeda9ecc92bf74a90105b76603e2a9de24ea571b
Change-Id: Iaeda9ecc92bf74a90105b76603e2a9de24ea571b
parent 90fc9f7d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment