From: NeilBrown Date: Wed, 1 Jul 2009 02:27:21 +0000 (+1000) Subject: md: tidy up error paths in md_alloc X-Git-Tag: v2.6.31-rc2~25^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0909dc448c98ed5021c87ffdfc09fb473aa464ab;p=pandora-kernel.git 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 Signed-off-by: NeilBrown --- Reading git-diff-tree failed