mtd: docg3: Fix kasprintf() usage

commit 0eb8618bd0 upstream.

kasprintf() does a dynamic memory allocation and can fail.
We have to handle that case.

Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
Richard Weinberger 2015-06-01 23:10:53 +02:00 • committed by Ben Hutchings
commit 2b651dccb5