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

Commit a31f8c2a authored by Nathan Chancellor's avatar Nathan Chancellor Committed by Harshit Jain
Browse files

zram: Do not allow compression algorithm to be changed

parent 18d4247e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -993,6 +993,7 @@ static ssize_t comp_algorithm_show(struct device *dev,
static ssize_t comp_algorithm_store(struct device *dev,
		struct device_attribute *attr, const char *buf, size_t len)
{
#if 0
	struct zram *zram = dev_to_zram(dev);
	char compressor[ARRAY_SIZE(zram->compressor)];
	size_t sz;
@@ -1015,6 +1016,7 @@ static ssize_t comp_algorithm_store(struct device *dev,

	strcpy(zram->compressor, compressor);
	up_write(&zram->init_lock);
#endif
	return len;
}