lkml.org 
[lkml]   [2021]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH V2] dmaengine: usb-dmac: Fix PM reference leak in usb_dmac_probe()
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

\
 
 \ /
  Last update: 2021-07-14 07:11    [W:0.045 / U:1.480 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site