]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: ufs: core: Add NULL check in ufshcd_mcq_compl_pending_transfer()
authorChenyuan Yang <chenyuan0y@gmail.com>
Sat, 12 Apr 2025 19:59:09 +0000 (14:59 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 22 Apr 2025 00:50:11 +0000 (20:50 -0400)
commit08a966a917fe3d92150fa3cc15793ad5e57051eb
treec06fc9271dc9782a88705ea99c0fca210d522dc6
parent54bebe46871d4e56e05fcf55c1a37e7efa24e0a8
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 74736103fb41 ("scsi: ufs: core: Fix
ufshcd_abort_one racing issue").

Signed-off-by: Chenyuan Yang <chenyuan0y@gmail.com>
Link: https://lore.kernel.org/r/20250412195909.315418-1-chenyuan0y@gmail.com
Fixes: ab248643d3d6 ("scsi: ufs: core: Add error handling for MCQ mode")
Reviewed-by: Peter Wang <peter.wang@mediatek.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd.c