aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/vac
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2008-12-06 14:45:57 -0800
committerRuss Cox <rsc@swtch.com>2008-12-06 14:45:57 -0800
commit52e34db194b46210035a263d96e19da107a5281a (patch)
treebd43fa7779a8688c2f7a7885024c65278d6b2cd0 /src/cmd/vac
parentb5a2d4dae76817f8e206d32302206a8a7ababc46 (diff)
downloadplan9port-52e34db194b46210035a263d96e19da107a5281a.tar.gz
plan9port-52e34db194b46210035a263d96e19da107a5281a.tar.bz2
plan9port-52e34db194b46210035a263d96e19da107a5281a.zip
vac: error handling bug in vacfileblockscore (David Swasey)
Diffstat (limited to 'src/cmd/vac')
-rw-r--r--src/cmd/vac/file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/vac/file.c b/src/cmd/vac/file.c
index d7ad2056..598dae09 100644
--- a/src/cmd/vac/file.c
+++ b/src/cmd/vac/file.c
@@ -598,11 +598,12 @@ vacfileblockscore(VacFile *f, u32int bn, u8int *score)
dsize = s->dsize;
size = vtfilegetsize(s);
if((uvlong)bn*dsize >= size)
- goto out;
+ goto out1;
ret = vtfileblockscore(f->source, bn, score);
-out:
+out1:
vtfileunlock(f->source);
+out:
filerunlock(f);
return ret;
}