Messages in this thread | | | Date | Mon, 25 Oct 2021 12:13:37 +0530 | From | Vinod Koul <> | Subject | Re: [PATCH] drivers/dma: fix reference count leaks in mmp_pdma_probe |
| |
On 11-09-21, 15:05, Xin Xiong wrote: > The issue happens in an error handling path. If > of_dma_controller_register() fails, the function simply prints error > messages and returns error code, without decrementing the reference > count of pdev->device incremented earlier by > dma_async_device_register(), which may result in refcount leaks. > > Fix it by invoking dma_async_device_unregister() before returning the > error code.
Pls use right subsystem tag, git log will tell u the same. I have fixe dit up while applying
-- ~Vinod
| |