]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: Release clock if DMA map fails
authorCan Guo <cang@codeaurora.org>
Thu, 5 Dec 2019 02:14:33 +0000 (02:14 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 20 Dec 2019 03:08:53 +0000 (22:08 -0500)
commit6c81d41a05d25ab1a43ed23393dc549ffcb08a18
tree74d999c18c257a3d697ceaa92db13d772a4f0f3f
parent9dd1b9089e8c533275cf6f02c336e2a07e2b32f6
scsi: ufs: Release clock if DMA map fails

In queuecommand path, if DMA map fails, it bails out with clock held.  In
this case, release the clock to keep its usage paired.

[mkp: applied by hand]

Link: https://lore.kernel.org/r/0101016ed3d66395-1b7e7fce-b74d-42ca-a88a-4db78b795d3b-000000@us-west-2.amazonses.com
Reviewed-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c