Re: [PATCH] usb: dwc3: fix possible object reference leak

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

 



On Thu, Oct 05, 2023 at 09:49:46PM +0800, Zhang Shurong wrote:
> The of_find_device_by_node takes a reference to the struct device
> when find the match device,we should release it when fail.
> 
> Fix it by calling by calling platform_device_put when error returns.
> 
> Signed-off-by: Zhang Shurong <zhang_shurong@xxxxxxxxxxx>
> ---

What commit id does this fix?

And how did you find this?  How was it tested?

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