linux-stable/drivers/ufs/core
SEO HOYOUNG c7ac9c1f7f scsi: ufs: core: Remove the ufshcd_release() in ufshcd_err_handling_prepare()
[ Upstream commit 17e94b2585 ]

If ufshcd_err_handler() is called in a suspend/resume situation,
ufs_release() can be called twice and active_reqs end up going negative.
This is because ufshcd_err_handling_prepare() and
ufshcd_err_handling_unprepare() both call ufshcd_release().

Remove superfluous call to ufshcd_release().

Signed-off-by: SEO HOYOUNG <hy50.seo@samsung.com>
Link: https://lore.kernel.org/r/20240122083324.11797-1-hy50.seo@samsung.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Can Guo <quic_cang@quicinc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-01 13:26:30 +01:00
..
Kconfig
Makefile
ufs-debugfs.c
ufs-debugfs.h
ufs-fault-injection.c
ufs-fault-injection.h
ufs-hwmon.c
ufs-sysfs.c
ufs-sysfs.h
ufs_bsg.c
ufs_bsg.h
ufshcd-crypto.c
ufshcd-crypto.h
ufshcd-priv.h
ufshcd.c scsi: ufs: core: Remove the ufshcd_release() in ufshcd_err_handling_prepare() 2024-03-01 13:26:30 +01:00
ufshpb.c
ufshpb.h