pmaports/device/testing/linux-samsung-a6lte/zram-zs-create-pool-null.patch
Sergey Lisov 4867a3f4e3
samsung-a6lte: new device (Samsung Galaxy A6 2018) (MR 3393)
[ci:skip-build] Already built successfuly on CI in MR
2022-09-07 08:12:14 +02:00

13 lines
575 B
Diff

diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c
index 60d73ab2..595be443 100644
--- a/drivers/block/zram/zram_drv.c
+++ b/drivers/block/zram/zram_drv.c
@@ -380,7 +380,7 @@ static struct zram_meta *zram_meta_alloc(int device_id, u64 disksize)
}
snprintf(pool_name, sizeof(pool_name), "zram%d", device_id);
- meta->mem_pool = zs_create_pool(pool_name, GFP_NOIO | __GFP_HIGHMEM);
+ meta->mem_pool = zs_create_pool(pool_name, GFP_NOIO | __GFP_HIGHMEM, NULL);
if (!meta->mem_pool) {
pr_err("Error creating memory pool\n");
goto out_error;