aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKeir Fraser <keir@xensource.com>2007-10-04 09:37:33 +0100
committerKeir Fraser <keir@xensource.com>2007-10-04 09:37:33 +0100
commitb470f96ea7c88a68a350c206fcc61685ba23d242 (patch)
tree0490b9400d19b9154fa1187a61bcf7220677af9b /tools
parent84daf5fe4f55e78b2bbc44ea81998ae749b02a0b (diff)
downloadxen-b470f96ea7c88a68a350c206fcc61685ba23d242.tar.gz
xen-b470f96ea7c88a68a350c206fcc61685ba23d242.tar.bz2
xen-b470f96ea7c88a68a350c206fcc61685ba23d242.zip
[hotplug scripts] Unlock the 'block' lock before bailing.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/examples/block1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/examples/block b/tools/examples/block
index 1cf6fb8fc8..411e6813fe 100644
--- a/tools/examples/block
+++ b/tools/examples/block
@@ -322,6 +322,7 @@ mount it read-write in a guest domain."
if [ "$loopdev" = '' ]
then
+ release_lock "block"
fatal 'Failed to find an unused loop device'
fi