summaryrefslogtreecommitdiffstats
path: root/sound/soc/au1x
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-07-01 12:27:21 +1000
committerNeilBrown <neilb@suse.de>2009-07-01 12:27:21 +1000
commit0909dc448c98ed5021c87ffdfc09fb473aa464ab (patch)
tree17c48d146c0f9eb7367a0d0feafea29838eae8eb /sound/soc/au1x
parent1ec22eb2b4a2e1a763106bce36b11c02eaa84e61 (diff)
downloadop-kernel-dev-0909dc448c98ed5021c87ffdfc09fb473aa464ab.zip
op-kernel-dev-0909dc448c98ed5021c87ffdfc09fb473aa464ab.tar.gz
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>
Diffstat (limited to 'sound/soc/au1x')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud