]> git.neil.brown.name Git - LaFS.git/commitdiff
lafs_find_orphan: always release the lock.
authorNeilBrown <neilb@suse.de>
Thu, 3 Sep 2009 05:28:21 +0000 (15:28 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 3 Sep 2009 05:28:21 +0000 (15:28 +1000)
Forgot to unlock on the "not found" path.

orphan.c

index b892da2fee15062a23f2acf78e1918c8b7e7aec0..4fcaaae65584a037a50a9e319934ce7b011aea57 100644 (file)
--- a/orphan.c
+++ b/orphan.c
@@ -586,5 +586,6 @@ struct datablock *lafs_find_orphan(struct inode *ino)
                        spin_unlock(&fs->lock);
                        return db;
                }
+       spin_unlock(&fs->lock);
        return NULL;
 }