From: Benjamin Mugnier <benjamin.mugnier@foss.st.com>
To: Aleksandr Chubuchnyi <chubuchnyi@gmail.com>,
<sakari.ailus@linux.intel.com>,
<laurent.pinchart@ideasonboard.com>, <mchehab@kernel.org>,
<mani@kernel.org>, <michael.riesch@collabora.com>,
<jacopo.mondi@ideasonboard.com>, <nicholas@rothemail.net>,
<sylvain.petinot@foss.st.com>
Cc: <linux-media@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<stable@vger.kernel.org>
Subject: Re: [PATCH 5/5] media: i2c: st-mipid02: Add missing v4l2_subdev_cleanup() call
Date: Mon, 21 Sep 2026 11:11:04 +0200 [thread overview]
Message-ID: <8084b7c9-2c59-40e7-bff9-09140372ecd1@foss.st.com> (raw)
In-Reply-To: <12ac971583eaf4775a0242a58a6ed0a1fd08cdb3.1788940469.git.chubuchnyi@gmail.com>
Hi,
Thanks, LGTM.
Reviewed-by: Benjamin Mugnier <benjamin.mugnier@foss.st.com>
Le 09/09/2026 à 10:02, Aleksandr Chubuchnyi a écrit :
> The subdev active state allocated by v4l2_subdev_init_finalize() is leaked
> on unbind. The driver has no common cleanup helper, so update both sites.
>
> Fixes: 04d170b288b3 ("media: i2c: st-mipid02: use active state to store pad formats")
> Cc: stable@vger.kernel.org
> Signed-off-by: Aleksandr Chubuchnyi <chubuchnyi@gmail.com>
> ---
> drivers/media/i2c/st-mipid02.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/media/i2c/st-mipid02.c b/drivers/media/i2c/st-mipid02.c
> index 4675181af..b2f275129 100644
> --- a/drivers/media/i2c/st-mipid02.c
> +++ b/drivers/media/i2c/st-mipid02.c
> @@ -919,6 +919,7 @@ static int mipid02_probe(struct i2c_client *client)
> power_off:
> mipid02_set_power_off(&client->dev);
> entity_cleanup:
> + v4l2_subdev_cleanup(&bridge->sd);
> media_entity_cleanup(&bridge->sd.entity);
>
> return ret;
> @@ -937,6 +938,7 @@ static void mipid02_remove(struct i2c_client *client)
> if (!pm_runtime_status_suspended(&client->dev))
> mipid02_set_power_off(&client->dev);
> pm_runtime_set_suspended(&client->dev);
> + v4l2_subdev_cleanup(&bridge->sd);
> media_entity_cleanup(&bridge->sd.entity);
> }
>
--
Regards,
Benjamin
prev parent reply other threads:[~2026-09-21 9:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-09 8:02 [PATCH 0/5] media: i2c: Add missing v4l2_subdev_cleanup() calls Aleksandr Chubuchnyi
2026-09-09 8:02 ` [PATCH 1/5] media: i2c: imx296: Add missing v4l2_subdev_cleanup() call Aleksandr Chubuchnyi
2026-09-09 8:02 ` [PATCH 2/5] media: i2c: imx415: " Aleksandr Chubuchnyi
2026-09-18 21:30 ` Michael Riesch
2026-09-09 8:02 ` [PATCH 3/5] media: i2c: mt9m114: Add missing v4l2_subdev_cleanup() calls Aleksandr Chubuchnyi
2026-09-09 8:02 ` [PATCH 4/5] media: i2c: ov8858: Add missing v4l2_subdev_cleanup() call Aleksandr Chubuchnyi
2026-09-09 8:02 ` [PATCH 5/5] media: i2c: st-mipid02: " Aleksandr Chubuchnyi
2026-09-21 9:11 ` Benjamin Mugnier [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=8084b7c9-2c59-40e7-bff9-09140372ecd1@foss.st.com \
--to=benjamin.mugnier@foss.st.com \
--cc=chubuchnyi@gmail.com \
--cc=jacopo.mondi@ideasonboard.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mani@kernel.org \
--cc=mchehab@kernel.org \
--cc=michael.riesch@collabora.com \
--cc=nicholas@rothemail.net \
--cc=sakari.ailus@linux.intel.com \
--cc=stable@vger.kernel.org \
--cc=sylvain.petinot@foss.st.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 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®