diff options
author | Yu Kuai <yukuai3@huawei.com> | 2020-08-17 19:57:26 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-09-12 11:45:27 +0200 |
commit | e515d7b260d2d115c03df02c51344818793f9720 (patch) | |
tree | f86651ba472b5403c639c42cb79a3bcffb1a31bd /drivers/dma/img-mdc-dma.c | |
parent | c1ff0effbf691a97bdcc45044f5ac33ee9d784a3 (diff) |
dmaengine: at_hdmac: check return value of of_find_device_by_node() in at_dma_xlate()
[ Upstream commit 0cef8e2c5a07d482ec907249dbd6687e8697677f ]
The reurn value of of_find_device_by_node() is not checked, thus null
pointer dereference will be triggered if of_find_device_by_node()
failed.
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-2-yukuai3@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/dma/img-mdc-dma.c')
0 files changed, 0 insertions, 0 deletions