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

Commit 613978f8 authored by Julia Lawall's avatar Julia Lawall Committed by Alasdair G Kergon
Browse files

dm exception store: free tmp_store on persistent flag error



Error handling code following a kmalloc should free the allocated data.

Cc: stable@kernel.org
Signed-off-by: default avatarJulia Lawall <julia@diku.dk>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent 6076905b
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -216,7 +216,8 @@ int dm_exception_store_create(struct dm_target *ti, int argc, char **argv,
		type = get_type("N");
		type = get_type("N");
	else {
	else {
		ti->error = "Persistent flag is not P or N";
		ti->error = "Persistent flag is not P or N";
		return -EINVAL;
		r = -EINVAL;
		goto bad_type;
	}
	}


	if (!type) {
	if (!type) {