]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Call free_super before attempting to add a new device
authorNeilBrown <neilb@suse.de>
Mon, 31 Jan 2011 02:53:35 +0000 (13:53 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 31 Jan 2011 02:53:35 +0000 (13:53 +1100)
commit562e70e4c4cec0f14125f9864770b6f228921b5c
tree59eda8c14839bdb83d9f6aaeb6cf132a0df885da
parent210597d11f89cafb222435fed30abe977a968e30
Call free_super before attempting to add a new device

Now that write_init_super doesn't close fds any more, we need
to call free_super before the ADD_NEW_DISK ioctl.
Also call free_super before some error returns, for cleanliness.

Signed-off-by: NeilBrown <neilb@suse.de>
Manage.c