]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: virt-dma: Add missing locking around list operations
authorSascha Hauer <s.hauer@pengutronix.de>
Mon, 16 Dec 2019 10:53:24 +0000 (11:53 +0100)
committerVinod Koul <vkoul@kernel.org>
Thu, 26 Dec 2019 04:34:18 +0000 (10:04 +0530)
commitcc1271a9e40de83c49e36907256d5bd5f73c1dc6
treecc8ca3b1edec9a95bc6356e5e587f6d4f267d8e0
parentbddc1f1e09c11c3a3b1017365b9b11fccccd5aac
dmaengine: virt-dma: Add missing locking around list operations

All list operations are protected by &vc->lock. As vchan_vdesc_fini()
is called unlocked add the missing locking around the list operations.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Tested-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20191216105328.15198-6-s.hauer@pengutronix.de
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/virt-dma.h