From: Chas Williams Date: Mon, 18 Oct 2004 06:54:37 +0000 (+0000) Subject: STABLE12-linux-free-dont-drop-alloc-sem-20040714 X-Git-Tag: openafs-stable-1_2_12~9 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=2915c715b707d7d4ee5a7992ad7bb0eecb06afb5;p=packages%2Fo%2Fopenafs.git STABLE12-linux-free-dont-drop-alloc-sem-20040714 FIXES 5831 dropping semaphore not needed, so don't (cherry picked from commit 4aba717d6404cad38583e96eb38227f542dad430) --- diff --git a/src/afs/LINUX/osi_alloc.c b/src/afs/LINUX/osi_alloc.c index f2ba713f9..af0bcaff9 100644 --- a/src/afs/LINUX/osi_alloc.c +++ b/src/afs/LINUX/osi_alloc.c @@ -330,9 +330,7 @@ void *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;