]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: at_hdmac: add missing put_device() call in at_dma_xlate()
authorYu Kuai <yukuai3@huawei.com>
Mon, 17 Aug 2020 11:57:27 +0000 (19:57 +0800)
committerVinod Koul <vkoul@kernel.org>
Wed, 19 Aug 2020 04:28:38 +0000 (09:58 +0530)
commitb2ae7905c74763459b02b30cd6c68fcd0b8b754f
tree154fddb1b84b7c321372a65a4031013cfc3260d1
parent42c453a9a124d65c26bb49de5c65591eb7390971
dmaengine: at_hdmac: add missing put_device() call in at_dma_xlate()

If of_find_device_by_node() succeed, at_dma_xlate() doesn't have a
corresponding put_device(). Thus add put_device() to fix the exception
handling for this function implementation.

Fixes: 6a7e1c2bad49 ("at_hdmac: move to generic DMA binding")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20200817115728.1706719-3-yukuai3@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/at_hdmac.c