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

Commit daa216c9 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 invalid memory access in zram_exit()"

parents 8ed9f1d8 38cace1a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -727,8 +727,10 @@ static void __exit zram_exit(void)
	for (i = 0; i < num_devices; i++) {
		zram = &zram_devices[i];

		get_disk(zram->disk);
		destroy_device(zram);
		zram_reset_device(zram);
		put_disk(zram->disk);
	}

	unregister_blkdev(zram_major, "zram");