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:
1ec22eb
)
md: tidy up error paths in md_alloc
author
NeilBrown
<neilb@suse.de>
Wed, 1 Jul 2009 02:27:21 +0000
(12:27 +1000)
committer
NeilBrown
<neilb@suse.de>
Wed, 1 Jul 2009 02:27:21 +0000
(12:27 +1000)
As the recent bug in md_alloc showed, having a single exit path for
unlocking and putting is a good idea. So restructure md_alloc to have
a single mutex_unlock and mddev_put, and use gotos where necessary.
Found-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
No differences found