diff options
author | Can Guo <cang@codeaurora.org> | 2019-12-05 02:14:33 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-06-11 09:21:39 +0200 |
commit | 992203a7c0d58bfb160a2a648134773583132117 (patch) | |
tree | b66a72733238ae48d52150f1d17669c3f5411cc3 /scripts | |
parent | fb586519dec413d455791267daf16925853faecd (diff) | |
download | linux-stable-992203a7c0d58bfb160a2a648134773583132117.tar.gz linux-stable-992203a7c0d58bfb160a2a648134773583132117.tar.bz2 linux-stable-992203a7c0d58bfb160a2a648134773583132117.zip |
scsi: ufs: Release clock if DMA map fails
commit 17c7d35f141ef6158076adf3338f115f64fcf760 upstream.
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>
[EB: resolved cherry-pick conflict caused by newer kernels not having
the clear_bit_unlock() line]
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions