# Re: \[PATCH V2\] dmaengine: usb-dmac: Fix PM reference leak in usb\_dmac\_probe()

- From: Vinod Koul \<vkoul@kernel.org\>
- Date: 2021-07-14 05:11:37 
- List: dmaengine
- Page: https://ratatoskr.run/dmaengine/2021/07/1443688
- Thread: https://ratatoskr.run/dmaengine/2021/07/1434642/t.md

```text
On 06-07-21, 20:45, Yu Kuai wrote:
> pm_runtime_get_sync will increment pm usage counter even it failed.
> Forgetting to putting operation will result in reference leak here.
> Fix it by moving the error_pm label above the pm_runtime_put() in
> the error path.

Applied, thanks

-- 
~Vinod
```
