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 8a8bc7a..e80af0b 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;