NeilBrown 0909dc448c 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 <jirislaby@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
2009-07-01 12:27:21 +10:00
..
2006-01-01 22:21:50 +01:00
2009-06-22 10:12:14 +01:00
2009-06-22 10:12:26 +01:00
2009-06-22 10:12:36 +01:00
2009-04-09 00:27:17 +01:00
2009-06-22 10:12:25 +01:00
2009-06-22 10:12:29 +01:00
2007-10-20 02:01:26 +01:00
2009-06-22 10:12:35 +01:00
2009-06-22 10:12:35 +01:00
2009-07-01 12:27:21 +10:00
2009-03-31 14:57:37 +11:00
2005-04-16 15:20:36 -07:00