From: Markus Elfring <Markus.Elfring@web.de>
To: Coia Prant <coiaprant@gmail.com>,
linux-mediatek@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
Angelo Gioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
Matthias Brugger <matthias.bgg@gmail.com>
Cc: stable@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
Kevin Hilman <khilman@baylibre.com>,
Roger Lu <roger.lu@mediatek.com>
Subject: Re: soc: mediatek: SVS: fix device reference leak in svs_add_device_link()
Date: Sun, 25 Oct 2026 12:42:51 +0100 [thread overview]
Message-ID: <230b2dd8-8d8f-4b1c-ac9f-2c1eac636751@web.de> (raw)
In-Reply-To: <9AE974CC-F342-42F0-84A3-D72C3A0326C2@gmail.com>
…
> __free(), DEFINE_FREE() and return_ptr() only appeared in v6.5, while
> this driver dates back to v5.19 and the fix is tagged for stable (first
> LTS is v6.1). Converting to scope-based cleanup here would not compile
> on 6.1.y and would force the stable team to rewrite the backport.
>
> So I'd prefer to keep the explicit put_device() in this patch and leave
> the __free(put_device) conversion to whoever owns the driver, as a
> separate cleanup when the stable backport is no longer a concern.
Would you eventually like to become more involved with corresponding
source code transformations?
Regards,
Markus
next prev parent reply other threads:[~2026-10-25 11:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-23 8:29 [PATCH] " Coia Prant
2026-10-25 7:58 ` Markus Elfring
2026-10-25 8:06 ` Coia Prant
2026-10-25 11:42 ` Markus Elfring [this message]
2026-10-25 11:46 ` Coia Prant
2026-10-25 12:06 ` Markus Elfring
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=230b2dd8-8d8f-4b1c-ac9f-2c1eac636751@web.de \
--to=markus.elfring@web.de \
--cc=angelogioacchino.delregno@collabora.com \
--cc=coiaprant@gmail.com \
--cc=khilman@baylibre.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=roger.lu@mediatek.com \
--cc=stable@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
all inboxes | Powered by JetHome®