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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Sep 2020 17:14:13 +0000 (19:14 +0200)
commit159db733b2acc0f78f9ae53d506a9e12ea278431
tree16e5834eb6a8bcbc421539a64a99f7cdd895f206
parente3149ca07e92d20ea8ecf2a9bdfadf7adf4525c9
dmaengine: at_hdmac: add missing put_device() call in at_dma_xlate()

[ Upstream commit 3832b78b3ec2cf51e07102f9b4480e343459b20f ]

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: bbe89c8e3d59 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/at_hdmac.c