]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
linux-free-dont-drop-alloc-sem-20040714
authorChas Williams <chas@cmf.nrl.navy.mil>
Wed, 14 Jul 2004 05:14:31 +0000 (05:14 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 14 Jul 2004 05:14:31 +0000 (05:14 +0000)
FIXES 5831

dropping semaphore not needed, so don't

src/afs/LINUX/osi_alloc.c

index 8a8bc7aafe74bf0d67ecdca6e47e12a2b418c250..e80af0ba0f8bf1f46ddd852e7a0ffb4f0e71eed3 100644 (file)
@@ -335,9 +335,7 @@ osi_linux_alloc(unsigned int asize, int drop_glock)
 
   free_error:
     if (new) {
-       up(&afs_linux_alloc_sem);
        linux_free(new);
-       down(&afs_linux_alloc_sem);
     }
     new = NULL;
     goto error;