答复: [PATCH -next] usb: xhci: tegra:Fix PM usage reference leak of tegra_xusb_unpowergate_partitions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> -----邮件原件-----
> 发件人: Greg KH [mailto:gregkh@xxxxxxxxxxxxxxxxxxx]
> 发送时间: 2022年3月18日 19:57
> 收件人: zhangqilong <zhangqilong3@xxxxxxxxxx>
> 抄送: mathias.nyman@xxxxxxxxx; thierry.reding@xxxxxxxxx;
> jonathanh@xxxxxxxxxx; linux-usb@xxxxxxxxxxxxxxx;
> linux-tegra@xxxxxxxxxxxxxxx
> 主题: Re: [PATCH -next] usb: xhci: tegra:Fix PM usage reference leak of
> tegra_xusb_unpowergate_partitions
> 
> On Tue, Mar 15, 2022 at 10:56:14AM +0800, zhangqilong wrote:
> > pm_runtime_get_sync will increment pm usage counter even it failed.
> > Forgetting to putting operation will result in reference leak here. We
> > fix it by replacing it with pm_runtime_resume_and_get to keep usage
> > counter balanced.
> >
> > Fixes:1a7426d25fa3 ("usb: xhci: tegra: Unlink power domain devices")
> 
> I do not see this commit id in any tree I know of.  Are you sure it is correct?
I paste the wrong commit id, It is 41a7426d25fa3

Thanks

Zhang
> 
> thanks,
> 
> greg k-h




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux