git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f0a5e0
)
md: check the return of mddev_find()
author
Yuanhan Liu
<yuanhan.liu@linux.intel.com>
Tue, 22 May 2012 03:55:32 +0000
(13:55 +1000)
committer
NeilBrown
<neilb@suse.de>
Tue, 22 May 2012 03:55:32 +0000
(13:55 +1000)
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: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
No differences found