-
由 Yang Yingliang 提交于
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: NYang Yingliang <yangyingliang@huawei.com> Acked-by: NPeter Ujfalusi <peter.ujfalusi@gmail.com> Link: https://lore.kernel.org/r/20221020062827.2914148-1-yangyingliang@huawei.comSigned-off-by: NVinod Koul <vkoul@kernel.org>
ac2b9f34