[PATCH] UBI: Fix potential NULL-pointer dereference

Artem Bityutskiy dedekind1 at gmail.com
Mon Mar 31 05:46:40 EDT 2014


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.

-- 
Best Regards,
Artem Bityutskiy




More information about the linux-mtd mailing list