pmaports/device/testing/linux-samsung-j7y17lte/zram-zs-create-pool-null.patch
Eray Tutmaz 93f68f6253
samsung-j7y17lte: new device (MR 4502)
[ci:skip-build]: Already built successfully in CI.
2024-02-15 02:19:03 -08: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;