Skip to content
Snippets Groups Projects
Commit 0c098220 authored by Yuanhan Liu's avatar Yuanhan Liu Committed by NeilBrown
Browse files

md: check the return of mddev_find()


Check the return of mddev_find(), since it may fail due to out of
memeory or out of usable minor number.

The reason I chose -ENODEV instead of -ENOMEM or something else is
md_alloc() function chose that ;)

Signed-off-by: default avatarYuanhan Liu <yuanhan.liu@linux.intel.com>
Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent 4f0a5e01
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment