From: Biju Das <biju.das.jz@bp.renesas.com>
To: Marc Kleine-Budde <mkl@pengutronix.de>
Cc: "Vincent Mailhol" <mailhol@kernel.org>,
"Rob Herring" <robh@kernel.org>, "Harini T" <harini.t@amd.com>,
"Michal Simek" <michal.simek@amd.com>,
"Geert Uytterhoeven" <geert+renesas@glider.be>,
"magnus.damm" <magnus.damm@gmail.com>,
"Uwe Kleine-König" <ukleinek@kernel.org>,
"kernel@pengutronix.de" <kernel@pengutronix.de>,
"linux-can@vger.kernel.org" <linux-can@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-renesas-soc@vger.kernel.org"
<linux-renesas-soc@vger.kernel.org>
Subject: RE: RE: RE: [PATCH can 4/4] can: rcar_canfd: rcar_canfd_probe(): reject devices without match data
Date: Mon, 16 Nov 2026 09:27:31 +0000 [thread overview]
Message-ID: <TYYPR01MB66035B42E6870B1A55DABF57867C2@TYYPR01MB6603.jpnprd01.prod.outlook.com> (raw)
In-Reply-To: <20261116-passionate-vulture-of-potency-331d64-mkl@pengutronix.de>
Hi Marc,
> -----Original Message-----
> From: Marc Kleine-Budde <mkl@pengutronix.de>
> Sent: 16 November 2026 09:20
> Subject: Re: RE: RE: [PATCH can 4/4] can: rcar_canfd: rcar_canfd_probe(): reject devices without match
> data
>
> On 16.11.2026 09:12:13, Biju Das wrote:
> > > Thanks, I wasn't aware of this series. I tested the driver_override
> > > on the flexcan driver with latest net/main, fixed it, and applied the fix to all affected CAN
> drivers.
> > >
> > > Should I drop the driver_override related null pointer checks from this series?
> >
> > I think so, currently only few drivers are using driver_override
> > feature and majority don't. There is a work in progress to disable
> > this feature by default. The driver needs driver_override will adjust
> > the probe() to make it functional, so it won't fail at all in probe().
> >
> > But here we are making probe to fail,
>
> Without my patch, using driver_override the info pointer is NULL and it will crash 5 lines later with
> a NULL pointer dereference.
If someone wants to test non-functional driver_override in a driver,
then it’s OK, I guess, at the expense of some code memory.
>
> > in case someone wants to
> > test the driver using bus_override.
> ^^^^^^^^^^^^
> What's bus_override?
Sorry it is a typo, I meant driver_override.
Cheers,
Biju
next prev parent reply other threads:[~2026-11-16 9:27 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-14 12:56 [PATCH can 0/4] can: fix probing and use of device_get_match_data() Marc Kleine-Budde
2026-11-14 12:56 ` [PATCH can 1/4] can: c_can: c_can_plat_probe(): reject devices without match data Marc Kleine-Budde
2026-11-14 12:56 ` [PATCH can 2/4] can: flexcan: flexcan_probe(): fix probing for m68k/coldfire and " Marc Kleine-Budde
2026-11-16 9:14 ` Uwe Kleine-König
2026-11-16 9:32 ` Marc Kleine-Budde
2026-11-14 12:56 ` [PATCH can 3/4] can: xilinx_can: xcan_probe(): " Marc Kleine-Budde
2026-11-16 6:48 ` Michal Simek
2026-11-14 12:56 ` [PATCH can 4/4] can: rcar_canfd: rcar_canfd_probe(): " Marc Kleine-Budde
2026-11-16 8:39 ` Biju Das
2026-11-16 8:54 ` Marc Kleine-Budde
2026-11-16 9:12 ` Biju Das
2026-11-16 9:20 ` Marc Kleine-Budde
2026-11-16 9:27 ` Biju Das [this message]
2026-11-16 11:24 ` Uwe Kleine-König
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=TYYPR01MB66035B42E6870B1A55DABF57867C2@TYYPR01MB6603.jpnprd01.prod.outlook.com \
--to=biju.das.jz@bp.renesas.com \
--cc=geert+renesas@glider.be \
--cc=harini.t@amd.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-can@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=mailhol@kernel.org \
--cc=michal.simek@amd.com \
--cc=mkl@pengutronix.de \
--cc=robh@kernel.org \
--cc=ukleinek@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®