Linux-i3c Archive mirror
 help / color / mirror / Atom feed
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: Dinghao Liu <dinghao.liu@zju.edu.cn>
Cc: Boris Brezillon <bbrezillon@kernel.org>,
	Arnd Bergmann <arnd@arndb.de>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] i3c: Fix potential refcount leak in i3c_master_register_new_i3c_devs
Date: Tue, 26 Sep 2023 00:06:38 +0200	[thread overview]
Message-ID: <169567834167.244864.5680434544553157892.b4-ty@bootlin.com> (raw)
In-Reply-To: <20230921082410.25548-1-dinghao.liu@zju.edu.cn>


On Thu, 21 Sep 2023 16:24:10 +0800, Dinghao Liu wrote:
> put_device() needs to be called on failure of device_register()
> to give up the reference initialized in it to avoid refcount leak.
> 
> 

Applied, thanks!

[1/1] i3c: Fix potential refcount leak in i3c_master_register_new_i3c_devs
      commit: cab63f64887616e3c4e31cfd8103320be6ebc8d3

Best regards,

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

-- 
linux-i3c mailing list
linux-i3c@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-i3c

      reply	other threads:[~2023-09-25 22:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-21  8:24 [PATCH] i3c: Fix potential refcount leak in i3c_master_register_new_i3c_devs Dinghao Liu
2023-09-25 22:06 ` Alexandre Belloni [this message]

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=169567834167.244864.5680434544553157892.b4-ty@bootlin.com \
    --to=alexandre.belloni@bootlin.com \
    --cc=arnd@arndb.de \
    --cc=bbrezillon@kernel.org \
    --cc=dinghao.liu@zju.edu.cn \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-i3c@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).