mtd: mtdblock: test return value of add_mtd_blktrans_dev, because if can fail
authorMaxim Levitsky <maximlevitsky@gmail.com>
Mon, 22 Feb 2010 18:39:31 +0000 (20:39 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 26 Feb 2010 17:05:46 +0000 (17:05 +0000)
commit298304f1a554d44cf13391e531ced3cde69a8ce4
tree586c6f1d99aa03856f057280ca6647089dfa8618
parent048d87199566663e4edc4880df3703c04bcf41d9
mtd: mtdblock: test return value of add_mtd_blktrans_dev, because if can fail

This prevents a memory leak

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtdblock.c
drivers/mtd/mtdblock_ro.c