[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>
Thu, 2 Aug 2007 20:44:10 +0000 (21:44 +0100)
commit47af05dd4b98b57eeb682596a0df42d106e02167
tree35c5c38928e94fbf3b85e18a2a8108660150e472
parentb8e3ec30c232eb76c96ecab52205fe46e8b0473a
[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