Skip to content
Commit ac2b9f34 authored by Yang Yingliang's avatar Yang Yingliang Committed by Vinod Koul
Browse files

dmaengine: ti: k3-udma-glue: fix memory leak when register device fail



If device_register() fails, it should call put_device() to give
up reference, the name allocated in dev_set_name() can be freed
in callback function kobject_cleanup().

Fixes: 5b65781d ("dmaengine: ti: k3-udma-glue: Add support for K3 PKTDMA")
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Acked-by: default avatarPeter Ujfalusi <peter.ujfalusi@gmail.com>
Link: https://lore.kernel.org/r/20221020062827.2914148-1-yangyingliang@huawei.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 081195d1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment