From: Greg KH <gregkh@linuxfoundation.org>
To: Zhang Shurong <zhang_shurong@foxmail.com>
Cc: Thinh.Nguyen@synopsys.com, shawnguo@kernel.org,
s.hauer@pengutronix.de, kernel@pengutronix.de,
festevam@gmail.com, linux-imx@nxp.com, linux-usb@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] usb: dwc3: fix possible object reference leak
Date: Thu, 5 Oct 2023 15:59:26 +0200 [thread overview]
Message-ID: <2023100512-crayon-prowess-0f27@gregkh> (raw)
In-Reply-To: <tencent_6BA8EA125537CBB5D65B05605E1E960AA708@qq.com>
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
WARNING: multiple messages have this Message-ID (diff)
From: Greg KH <gregkh@linuxfoundation.org>
To: Zhang Shurong <zhang_shurong@foxmail.com>
Cc: Thinh.Nguyen@synopsys.com, shawnguo@kernel.org,
s.hauer@pengutronix.de, kernel@pengutronix.de,
festevam@gmail.com, linux-imx@nxp.com, linux-usb@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] usb: dwc3: fix possible object reference leak
Date: Thu, 5 Oct 2023 15:59:26 +0200 [thread overview]
Message-ID: <2023100512-crayon-prowess-0f27@gregkh> (raw)
In-Reply-To: <tencent_6BA8EA125537CBB5D65B05605E1E960AA708@qq.com>
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
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-10-05 13:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-05 13:49 [PATCH] usb: dwc3: fix possible object reference leak Zhang Shurong
2023-10-05 13:49 ` Zhang Shurong
2023-10-05 13:59 ` Greg KH [this message]
2023-10-05 13:59 ` Greg KH
2023-10-05 15:01 ` Zhang Shurong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2023100512-crayon-prowess-0f27@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=Thinh.Nguyen@synopsys.com \
--cc=festevam@gmail.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=zhang_shurong@foxmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.