From: sashiko-bot@kernel.org
To: "Andy Shevchenko" <andriy.shevchenko@linux.intel.com>
Cc: linux-media@vger.kernel.org
Subject: Re: [PATCH v1 1/1] media: tda18250: Use %*ph to print small buffer
Date: Wed, 03 Jun 2026 11:35:37 +0000 [thread overview]
Message-ID: <20260603113538.2772E1F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260603111724.230522-1-andriy.shevchenko@linux.intel.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
Pre-existing issues:
- [High] This problem wasn't introduced by this patch, but an unconditional dereference of `client->dev.platform_data` can cause a kernel Oops.
--
commit 1ea3356f8c26d9844c17f495f65f794b5140a6ef
Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
media: tda18250: Use %*ph to print small buffer
This commit updates the driver to use the %*ph format specifier for
printing a small buffer as a hex string.
> diff --git a/drivers/media/tuners/tda18250.c b/drivers/media/tuners/tda18250.c
> --- a/drivers/media/tuners/tda18250.c
> +++ b/drivers/media/tuners/tda18250.c
> @@ -804,8 +804,7 @@ static int tda18250_probe(struct i2c_client *client)
[Severity: High]
This is a pre-existing issue, but can an unconditional dereference of
client->dev.platform_data cause a kernel oops?
In tda18250_probe(), cfg is initialized from platform_data and immediately
dereferenced without a prior null check:
static int tda18250_probe(struct i2c_client *client)
{
struct tda18250_config *cfg = client->dev.platform_data;
struct dvb_frontend *fe = cfg->fe;
If the device is instantiated without platform data, such as when a root
user manually creates the device via the i2c new_device sysfs interface or
if bound via an incomplete device tree node, cfg will be null.
Does reading the fe member from a null cfg pointer result in a concrete
null pointer dereference bringing the system down?
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260603111724.230522-1-andriy.shevchenko@linux.intel.com?part=1
next prev parent reply other threads:[~2026-06-03 11:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-03 11:17 [PATCH v1 1/1] media: tda18250: Use %*ph to print small buffer Andy Shevchenko
2026-06-03 11:35 ` sashiko-bot [this message]
2026-06-04 8:58 ` Andy Shevchenko
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=20260603113538.2772E1F00893@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=linux-media@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