diff options
| -rw-r--r-- | drivers/md/dm-exception-store.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/dm-exception-store.c b/drivers/md/dm-exception-store.c index 7dbe652efb5..205215968ff 100644 --- a/drivers/md/dm-exception-store.c +++ b/drivers/md/dm-exception-store.c @@ -216,7 +216,8 @@ int dm_exception_store_create(struct dm_target *ti, int argc, char **argv,  		type = get_type("N");  	else {  		ti->error = "Persistent flag is not P or N"; -		return -EINVAL; +		r = -EINVAL; +		goto bad_type;  	}  	if (!type) {  |