diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c index 357bde879e7c..3b82b2386816 100755 --- a/drivers/block/zram/zram_drv.c +++ b/drivers/block/zram/zram_drv.c @@ -3026,10 +3026,12 @@ static int __zram_bvec_read(struct zram *zram, struct page *page, u32 index, zcomp_stream_put(zram->comp); } +#ifdef CONFIG_ZRAM_LRU_WRITEBACK /* Should NEVER happen. BUG() if it does. */ if (unlikely(ret)) handle_decomp_fail(zram->compressor, ret, index, src, size, NULL); +#endif zs_unmap_object(zram->mem_pool, zram_entry_handle(zram, entry)); #ifdef CONFIG_ZRAM_LRU_WRITEBACK