projects
/
wrapfs-5.3.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b7aab8
)
dmaengine: ti: k3-psil: fix deadlock on error path
author
Grygorii Strashko
<grygorii.strashko@ti.com>
Wed, 8 Apr 2020 18:55:01 +0000
(21:55 +0300)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 6 May 2020 06:16:45 +0000
(08:16 +0200)
commit
172d59ecd61b89f535ad99a7e531c0f111453b9a
upstream.
The mutex_unlock() is missed on error path of psil_get_ep_config()
which causes deadlock, so add missed mutex_unlock().
Fixes: 8c6bb62f6b4a ("dmaengine: ti: k3 PSI-L remote endpoint configuration")
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link:
https://lore.kernel.org/r/20200408185501.30776-1-grygorii.strashko@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/ti/k3-psil.c
patch
|
blob
|
history
diff --git
a/drivers/dma/ti/k3-psil.c
b/drivers/dma/ti/k3-psil.c
index d7b965049ccb1e63149bf8d636e95952bc5c9f52..fb7c8150b0d1d971ded5f66091c039864ee23215 100644
(file)
--- a/
drivers/dma/ti/k3-psil.c
+++ b/
drivers/dma/ti/k3-psil.c
@@
-27,6
+27,7
@@
struct psil_endpoint_config *psil_get_ep_config(u32 thread_id)
soc_ep_map = &j721e_ep_map;
} else {
pr_err("PSIL: No compatible machine found for map\n");
+ mutex_unlock(&ep_map_mutex);
return ERR_PTR(-ENOTSUPP);
}
pr_debug("%s: Using map for %s\n", __func__, soc_ep_map->name);