]> git.infradead.org Git - nvme.git/commit
scsi: ufs: core: Remove the ufshcd_release() in ufshcd_err_handling_prepare()
authorSEO HOYOUNG <hy50.seo@samsung.com>
Mon, 22 Jan 2024 08:33:24 +0000 (17:33 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 5 Feb 2024 21:31:18 +0000 (16:31 -0500)
commit17e94b2585417e04dabc2f13bc03b4665ae687f3
tree32c14978e76f455833e83c1ceaf1406b8c8bdfa1
parentb513d30d59bb383a6a5d6b533afcab2cee99a8f8
scsi: ufs: core: Remove the ufshcd_release() in ufshcd_err_handling_prepare()

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>
drivers/ufs/core/ufshcd.c