lkml.org 
[lkml]   [2023]   [Oct]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] usb: dwc3: fix possible object reference leak
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@foxmail.com>
> ---

What commit id does this fix?

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

thanks,

greg k-h

\
 
 \ /
  Last update: 2023-10-05 16:41    [W:0.073 / U:2.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site