mtd: cfi_cmdset_0001: fixing memory leak and handling failed kmalloc
authorInsu Yun <wuninsu@gmail.com>
Tue, 29 Dec 2015 18:45:09 +0000 (13:45 -0500)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 7 Jan 2016 01:23:10 +0000 (17:23 -0800)
commit33853ebd746f0e6aa262745376fde5d4995e0a87
tree273fb9272a2a272b925fe2ed14fd133148a9896e
parent32321e950d8a237d7e8f3a9b76220007dfa87544
mtd: cfi_cmdset_0001: fixing memory leak and handling failed kmalloc

kmalloc needs to be handled when failing in memory pressure.
Also, it has memory leak in error routine.

Signed-off-by: Insu Yun <wuninsu@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/chips/cfi_cmdset_0001.c