[PATCH can 4/4] can: rcar_canfd: rcar_canfd_probe(): reject devices without match data
Biju Das
biju.das.jz at bp.renesas.com
Mon Nov 16 01:27:31 PST 2026
Hi Marc,
> -----Original Message-----
> From: Marc Kleine-Budde <mkl at 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
More information about the linux-arm-kernel
mailing list