From: Krzysztof Kozlowski <krzk@kernel.org>
To: zbr@ioremap.net, minimumlaw@rambler.ru,
gregkh@linuxfoundation.org,
Haoxiang Li <lihaoxiang@isrc.iscas.ac.cn>
Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH] w1: fix redundant counter decrement in w1_attach_slave_device()
Date: Sun, 28 Dec 2025 12:18:50 +0100 [thread overview]
Message-ID: <176692073090.56515.4804717383085601959.b4-ty@kernel.org> (raw)
In-Reply-To: <20251218111414.564403-1-lihaoxiang@isrc.iscas.ac.cn>
On Thu, 18 Dec 2025 19:14:14 +0800, Haoxiang Li wrote:
> In w1_attach_slave_device(), if __w1_attach_slave_device() fails,
> put_device() -> w1_slave_release() is called to do the cleanup job.
> In w1_slave_release(), sl->family->refcnt and sl->master->slave_count
> have already been decremented. There is no need to decrement twice
> in w1_attach_slave_device().
>
>
> [...]
Applied, thanks!
[1/1] w1: fix redundant counter decrement in w1_attach_slave_device()
https://git.kernel.org/krzk/linux-w1/c/cc8f92e41eb76f450f05234fef2054afc3633100
Best regards,
--
Krzysztof Kozlowski <krzk@kernel.org>
prev parent reply other threads:[~2025-12-28 11:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-18 11:14 Haoxiang Li
2025-12-28 11:18 ` Krzysztof Kozlowski [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=176692073090.56515.4804717383085601959.b4-ty@kernel.org \
--to=krzk@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=lihaoxiang@isrc.iscas.ac.cn \
--cc=linux-kernel@vger.kernel.org \
--cc=minimumlaw@rambler.ru \
--cc=stable@vger.kernel.org \
--cc=zbr@ioremap.net \
/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
all inboxes | Powered by JetHome®