[PATCH] UBI: Fix potential NULL-pointer dereference

Alexander Stein alexanders83 at web.de
Mon Mar 31 13:00:25 EDT 2014


On Monday 31 March 2014, 12:46:40 wrote Artem Bityutskiy:
> On Mon, 2014-03-31 at 06:18 +0000, Mats Kärrman wrote:
> > On Friday, March 28, 2014 10:04 PM, Alexander Stein wrote:
> > >
> > > It's no use to debug print a string before checking on NULL.
> > >
> > 
> > If the string is NULL, that could be very useful to know when debugging and
> > the print function should handle that gracefully, i.e. by not printing anything
> > for %s.
> 
> %s will just result in (null), I do not see any issue with this.

Oh, it does? I was not aware of that (kernel-specific) behavior.
Sorry for ne noise.

Best regards,
Alexander




More information about the linux-mtd mailing list