[PATCH] UBI: Fix potential NULL-pointer dereference

Mats Kärrman Mats.Karrman at tritech.se
Mon Mar 31 02:18:51 EDT 2014


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.

BR // Mats



More information about the linux-mtd mailing list