Linux RTC
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Guangshuo Li" <liguangshuo@mail.sdu.edu.cn>
Cc: linux-rtc@vger.kernel.org,
	"Alexandre Belloni" <alexandre.belloni@bootlin.com>
Subject: Re: [PATCH] rtc: m41t80: Fix potential stale square-wave clock on removal
Date: Tue, 01 Dec 2026 12:33:35 +0000	[thread overview]
Message-ID: <sashiko-outbox-243270@kernel.org> (raw)
In-Reply-To: <20261201-52610d65e6-rtc-m41t80@mail.sdu.edu.cn>

> The square-wave clock and its OF provider remain registered after probe
> failure or device removal releases the managed clock data. Subsequent
> clock operations can access that freed storage.
> 
> Manage both registrations so the provider and clock are removed before
> their backing data is released.
> 
> This issue was found by our static analysis tool under development.
> 
> Fixes: 1373e77b4f10 ("rtc: m41t80: add clock provider support")
> Signed-off-by: Guangshuo Li <liguangshuo@mail.sdu.edu.cn>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261201-52610d65e6-rtc-m41t80@mail.sdu.edu.cn?part=1

      reply	other threads:[~2026-12-01 12:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 12:28 [PATCH] rtc: m41t80: Fix potential stale square-wave clock on removal Guangshuo Li
2026-12-01 12:33 ` 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-243270@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=alexandre.belloni@bootlin.com \
    --cc=liguangshuo@mail.sdu.edu.cn \
    --cc=linux-rtc@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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