summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/block/zram/zram_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c
index 4491787095a0..c94386aa563d 100644
--- a/drivers/block/zram/zram_drv.c
+++ b/drivers/block/zram/zram_drv.c
@@ -1154,6 +1154,7 @@ static int create_device(struct zram *zram, int device_id)
1154 if (!zram->disk) { 1154 if (!zram->disk) {
1155 pr_warn("Error allocating disk structure for device %d\n", 1155 pr_warn("Error allocating disk structure for device %d\n",
1156 device_id); 1156 device_id);
1157 ret = -ENOMEM;
1157 goto out_free_queue; 1158 goto out_free_queue;
1158 } 1159 }
1159 1160