mtd: cs553x_nand: Fix kasprintf() usage
authorRichard Weinberger <richard@nod.at>
Mon, 1 Jun 2015 21:10:51 +0000 (23:10 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 17 Jun 2015 01:58:47 +0000 (18:58 -0700)
commitbc349da0a6b3c6cf795b6a51e3f448d9d16a1686
tree4d2d1c24a9171267545f139053be9d42ae8489ee
parent905cce7f4309f3ec19c1ed67edd68b7e67e88f3e
mtd: cs553x_nand: Fix kasprintf() usage

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>
drivers/mtd/nand/cs553x_nand.c