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

Commit 2740667b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "zram: avoid double free in function zram_bvec_write()"

parents e224ca0f 04ee2e6f
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -272,8 +272,6 @@ static int zram_bvec_write(struct zram *zram, struct bio_vec *bvec, u32 index,

	if (page_zero_filled(uncmem)) {
		kunmap_atomic(user_mem);
		if (is_partial_io(bvec))
			kfree(uncmem);
		zram->stats.pages_zero++;
		zram_set_flag(meta, index, ZRAM_ZERO);
		ret = 0;