mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
Don't store things in _devs[-1] - it's not nice.
This commit is contained in:
parent
e6b6c6a9cf
commit
9a193e5eb5
@ -578,7 +578,6 @@ int dm_create(const char *name, int minor)
|
||||
}
|
||||
|
||||
strcpy(md->name, name);
|
||||
_devs[minor] = md;
|
||||
|
||||
if ((r = register_device(md))) {
|
||||
up_write(&_dev_lock);
|
||||
|
Loading…
x
Reference in New Issue
Block a user