Re: [PATCH] i2c: rcar: fix a possible NULL dereference

From: Wolfram Sang
Date: Thu Nov 12 2015 - 03:48:49 EST


On Thu, Nov 12, 2015 at 09:09:26AM +0100, Uwe Kleine-KÃnig wrote:
> Hello Wolfram,
>
> On Thu, Nov 12, 2015 at 08:52:38AM +0100, Wolfram Sang wrote:
> > On Thu, Nov 12, 2015 at 08:44:47AM +0100, Uwe Kleine-KÃnig wrote:
> > > Other than that, the NULL pointer dereference should only happen if the
> > > device was bound using the driver name. That might be worth to point out
> > > in the commit log. So maybe make (in a separate patch) the probe
> > > function fail when probed by name?
> >
> > RCar is a DT only platform.
>
> Does this imply that no checking is needed? I'm not sure.

I don't see how this driver could get probed otherwise. That being said,
for the "better safe than sorry" approach, I'd accept your suggestion.

Attachment: signature.asc
Description: Digital signature