dmaengine: coh901318: Fix a double lock bug in dma_tc_handle()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 17 Feb 2020 14:40:50 +0000 (17:40 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Mar 2020 13:15:12 +0000 (14:15 +0100)
commit8fb8f0931dceab928206771eb0ffaf197e94641f
tree2f7c452737e087da7391399acc1b4bb10f82ea1a
parentb8831b2976227056a807bb2a1ec90a80cd523b2c
dmaengine: coh901318: Fix a double lock bug in dma_tc_handle()

commit 36d5d22090d13fd3a7a8c9663a711cbe6970aac8 upstream.

The caller is already holding the lock so this will deadlock.

Fixes: 0b58828c923e ("DMAENGINE: COH 901 318 remove irq counting")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200217144050.3i4ymbytogod4ijn@kili.mountain
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/coh901318.c