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
..
2009-06-23 01:54:30 -04:00
2009-06-26 13:06:41 +02:00
2009-07-01 12:27:21 +10:00
2009-06-20 18:39:43 +00:00
2009-06-22 16:56:22 -07:00
2009-06-19 16:46:05 -07:00