]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mtd: nandsim: Fix kasprintf() usage
authorRichard Weinberger <richard@nod.at>
Mon, 1 Jun 2015 21:10:50 +0000 (23:10 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 17 Jun 2015 01:58:47 +0000 (18:58 -0700)
commit641c7925b6ec78466358b654c731050b4179e5f4
treec4a929dfeab7dfc1e063e94f97856bed2c5f8431
parentbc349da0a6b3c6cf795b6a51e3f448d9d16a1686
mtd: nandsim: Fix kasprintf() usage

kasprintf() used in get_partition_name() 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/nandsim.c