]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/mtd/ubi/fastmap.c
UBI: add missing kmem_cache_free() in process_pool_aeb error path
[karo-tx-linux.git] / drivers / mtd / ubi / fastmap.c
index 0431b46d9fd9e0211a8c7f5e865721a6b32895b5..c701369090fb3d969a4e6b2b612d8de82f93f932 100644 (file)
@@ -330,6 +330,7 @@ static int process_pool_aeb(struct ubi_device *ubi, struct ubi_attach_info *ai,
                av = tmp_av;
        else {
                ubi_err("orphaned volume in fastmap pool!");
+               kmem_cache_free(ai->aeb_slab_cache, new_aeb);
                return UBI_BAD_FASTMAP;
        }