staging: kpc2000: double unlock in error handling in kpc_dma_transfer()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 15 May 2019 09:52:46 +0000 (12:52 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 May 2019 07:18:45 +0000 (09:18 +0200)
commitc85aa326f5c5cc73bad4381498fd2bda1bb41c27
tree2fb749cbdc3e8c2d9ce818dc3cb12f964c562ac6
parentd4c596ebf62760b89ec3d0a2cbc94e2632395eec
staging: kpc2000: double unlock in error handling in kpc_dma_transfer()

The goto err_descr_too_many; calls unlock_engine() so this unlocks
twice.

Fixes: 7df95299b94a ("staging: kpc2000: Add DMA driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/kpc2000/kpc_dma/fileops.c