[MTD] Fix potential leak in rfd_ftl_add_mtd
authorFlorin Malita <fmalita@gmail.com>
Thu, 19 Jul 2007 20:45:18 +0000 (16:45 -0400)
committerDavid Woodhouse <dwmw2@infradead.org>
Mon, 23 Jul 2007 11:05:07 +0000 (12:05 +0100)
commit1050643431c74d29ac972141cb24df1d9aca65cd
tree2d319cd9feba34e2fddba881da4dd43e225018d7
parent4cfff0db3a60a775c29abd9cbc300fc0f616904b
[MTD] Fix potential leak in rfd_ftl_add_mtd

This fixes a leak in the !mtd->erasesize error path (Coverity 1765).

Signed-off-by: Florin Malita <fmalita@gmail.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/rfd_ftl.c