aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-10-20 14:28:27 +0800
committerVinod Koul <vkoul@kernel.org>2022-11-08 10:43:56 +0530
commitac2b9f34f02052709aea7b34bb2a165e1853eb41 (patch)
tree73b92fc2fc2b02350610544d9245c90ed4543386 /drivers/gpu
parentdmaengine: mv_xor_v2: Fix a resource leak in mv_xor_v2_remove() (diff)
downloadlinux-dev-ac2b9f34f02052709aea7b34bb2a165e1853eb41.tar.xz
linux-dev-ac2b9f34f02052709aea7b34bb2a165e1853eb41.zip
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 'drivers/gpu')
0 files changed, 0 insertions, 0 deletions