]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Jan 2021 12:44:54 +0000 (13:44 +0100)
commit20d5ee563bfdcd45cfcb9c898102e0c2f63f8b6f
treebb077bcd5707a1c50be13d82a538e813b83fb0b4
parentf2a0b7677444e12e604ed84b6cecc01ec6228b48
dmaengine: at_hdmac: add missing put_device() call in at_dma_xlate()

commit 3832b78b3ec2cf51e07102f9b4480e343459b20f upstream.

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/at_hdmac.c