Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb927284 authored by Jerome Marchand's avatar Jerome Marchand Committed by Greg Kroah-Hartman
Browse files

Staging: zram: Add a missing GFP_KERNEL specifier in zram_init_device()



The allocation of zram->compress_buffer is misssing a GFP_* specifier.
This is equivalent to GFP_NOWAIT but it is more likely a omission.
Since the allocation just above it uses GFP_KERNEL, there is no reason
to use GFP_NOWAIT here. Therefore, add GFP_KERNEL.

Signed-off-by: default avatarJerome Marchand <jmarchan@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 04e7bbad
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -653,7 +653,8 @@ int zram_init_device(struct zram *zram)
		goto fail_no_table;
	}

	zram->compress_buffer = (void *)__get_free_pages(__GFP_ZERO, 1);
	zram->compress_buffer =
		(void *)__get_free_pages(GFP_KERNEL | __GFP_ZERO, 1);
	if (!zram->compress_buffer) {
		pr_err("Error allocating compressor buffer space\n");
		ret = -ENOMEM;