]> xenbits.xensource.com Git - xen.git/commitdiff
[hotplug scripts] Unlock the 'block' lock before bailing.
authorKeir Fraser <keir@xensource.com>
Thu, 4 Oct 2007 08:37:33 +0000 (09:37 +0100)
committerKeir Fraser <keir@xensource.com>
Thu, 4 Oct 2007 08:37:33 +0000 (09:37 +0100)
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
tools/examples/block

index 1cf6fb8fc8e73ca575f4099e922568dc5981dac4..411e6813fec54a0a8519416e0239c49766f8217d 100644 (file)
@@ -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