]> Pileus Git - ~andy/linux/blobdiff - drivers/staging/zcache/zcache.c
Merge branch 'for-2.6.39/core' of git://git.kernel.dk/linux-2.6-block
[~andy/linux] / drivers / staging / zcache / zcache.c
index 61be8498fb06f92632f0f36dc9decf0a9d79352b..b8a2b30a157216f63506c4fbbd2cda539bd186f3 100644 (file)
@@ -790,6 +790,7 @@ static int zcache_do_preload(struct tmem_pool *pool)
        page = (void *)__get_free_page(ZCACHE_GFP_MASK);
        if (unlikely(page == NULL)) {
                zcache_failed_get_free_pages++;
+               kmem_cache_free(zcache_obj_cache, obj);
                goto unlock_out;
        }
        preempt_disable();