]> asedeno.scripts.mit.edu Git - linux.git/commit
scsi: ufs: Unlock on a couple error paths
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 13 Dec 2019 10:48:28 +0000 (13:48 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 20 Dec 2019 03:08:53 +0000 (22:08 -0500)
commitbb14dd1564c90d333f51e69dd6fc880b8233ce11
treef99c517c2574e43e16895621a5e7b451b8dd5e19
parente89fbc7feb0013b4ec8145c726c44ded56065216
scsi: ufs: Unlock on a couple error paths

We introduced a few new error paths, but we can't return directly, we first
have to unlock "hba->clk_scaling_lock" first.

Fixes: a276c19e3e98 ("scsi: ufs: Avoid busy-waiting by eliminating tag conflicts")
Link: https://lore.kernel.org/r/20191213104828.7i64cpoof26rc4fw@kili.mountain
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c