All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Yige Jiang" <yigejiang86@gmail.com>
Cc: linux-rtc@vger.kernel.org,
	"Alexandre Belloni" <alexandre.belloni@bootlin.com>
Subject: Re: [PATCH] rtc: isl12026: Fix EEPROM dummy client leak on probe failure
Date: Wed, 25 Nov 2026 09:12:46 +0000	[thread overview]
Message-ID: <sashiko-outbox-232976@kernel.org> (raw)
In-Reply-To: <rc-b1-20261110-vc-22-300211a8c5a0@gmail.com>

> isl12026_probe() registers a dummy i2c client for the EEPROM at 0x57
> with i2c_new_dummy_device(), but only isl12026_remove() unregisters it.
> If devm_rtc_allocate_device(), devm_rtc_nvmem_register() or
> devm_rtc_register_device() fails, probe returns with the dummy client
> still registered. Every later probe attempt then fails with -EBUSY in
> i2c_new_dummy_device(), because 0x57 is still taken by the leaked
> client.
> 
> Use devm_i2c_new_dummy_device() and drop isl12026_remove(). The dummy
> client is now unregistered on probe failure, and on unbind it is
> unregistered after the devm-managed RTC and nvmem devices that use it.
> 
> Fixes: 4731a43169b7 ("rtc: isl12026: new driver.")
> Cc: stable@vger.kernel.org
> Signed-off-by: Yige Jiang <yigejiang86@gmail.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/rc-b1-20261110-vc-22-300211a8c5a0@gmail.com?part=1

      reply	other threads:[~2026-11-25  9:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25  9:10 [PATCH] rtc: isl12026: Fix EEPROM dummy client leak on probe failure Yige Jiang
2026-11-25  9:12 ` sashiko-bot [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=sashiko-outbox-232976@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=alexandre.belloni@bootlin.com \
    --cc=linux-rtc@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=yigejiang86@gmail.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.