In the Linux kernel, the following vulnerability has been resolved: 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().
https://git.kernel.org/stable/c/ac2b9f34f02052709aea7b34bb2a165e1853eb41
https://git.kernel.org/stable/c/1dd27541aa2b95bde71bddd43d73f9c16d73272c
https://git.kernel.org/stable/c/025eab5189fc7ee223ae9b4bc49d7df196543e53