On Sat, May 6, 2017 at 10:23 AM, Christophe JAILLET <christophe.jaillet@xxxxxxxxxx> wrote: > If 'devm_kzalloc' fails, a NULL pointer will be dereferenced. > Return -ENOMEM instead, as done for the other memory allocation just a > few lines below. > BTW, change the 'devm_kzalloc' into a 'devm_kcalloc'. > > Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx> Patch applied. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html