diff options
author | NeilBrown <[email protected]> | 2009-07-01 12:27:21 +1000 |
---|---|---|
committer | NeilBrown <[email protected]> | 2009-07-01 12:27:21 +1000 |
commit | 0909dc448c98ed5021c87ffdfc09fb473aa464ab (patch) | |
tree | 17c48d146c0f9eb7367a0d0feafea29838eae8eb /net/unix | |
parent | 1ec22eb2b4a2e1a763106bce36b11c02eaa84e61 (diff) |
md: tidy up error paths in md_alloc
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 <[email protected]>
Signed-off-by: NeilBrown <[email protected]>
Diffstat (limited to 'net/unix')
0 files changed, 0 insertions, 0 deletions