Skip to content
Commit 1ec22eb2 authored by NeilBrown's avatar NeilBrown
Browse files

md: fix error path when duplicate name is found on md device creation.



When an md device is created by name (rather than number) we need to
check that the name is not already in use.  If this check finds a
duplicate, we return an error without dropping the lock or freeing
the newly create mddev.
This patch fixes that.

Cc: stable@kernel.org
Found-by: default avatarJiri Slaby <jirislaby@gmail.com>
Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent b8d966ef
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment