[PATCH] UBI: Fix null pointer on error log

Richard Weinberger richard at nod.at
Fri Jul 29 01:51:13 PDT 2016


Camille,

Am 29.07.2016 um 10:44 schrieb Camille Constans:
> It fixes UBI: Extend UBI layer debug/messaging capabilities
> As with this commit ubi_err macro is now:
> 
> #define ubi_err(ubi, fmt, ...) pr_err("UBI-%d error: %s: " fmt "\n", \
> 				      ubi->ubi_num, __func__, ##__VA_ARGS__)
> 
> It leads to a null pointer when used before allocating ubi.

sorry but a fix for this is already queued:
http://www.spinics.net/lists/stable/msg137428.html

Thanks,
//richard



More information about the linux-mtd mailing list