UBI: fix some use after free bugs
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 29 Jan 2014 13:17:57 +0000 (16:17 +0300)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Tue, 4 Feb 2014 07:44:30 +0000 (09:44 +0200)
commit5547fec74a566e1f5e00a937b9a367f7c6a94a8b
tree8bb72debb9e3ce71922e1c4a3ca48fb052f74878
parent38dbfb59d1175ef458d006556061adeaa8751b72
UBI: fix some use after free bugs

Move the kmem_cache_free() calls down a couple lines.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/ubi/fastmap.c