diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-10-20 09:28:27 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2022-11-08 08:13:56 +0300 |
commit | ac2b9f34f02052709aea7b34bb2a165e1853eb41 (patch) | |
tree | 73b92fc2fc2b02350610544d9245c90ed4543386 /scripts/gdb/linux/timerlist.py | |
parent | 081195d17a0c4c636da2b869bd5809d42e8cbb13 (diff) | |
download | linux-ac2b9f34f02052709aea7b34bb2a165e1853eb41.tar.xz |
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: 5b65781d06ea ("dmaengine: ti: k3-udma-glue: Add support for K3 PKTDMA")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Link: https://lore.kernel.org/r/20221020062827.2914148-1-yangyingliang@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions