]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-alloc-confusion-20040120
authorJim Rees <rees@umich.edu>
Mon, 31 Jan 2005 04:19:41 +0000 (04:19 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 31 Jan 2005 04:19:41 +0000 (04:19 +0000)
use osi_Alloc instead of osi_AllocLargeSpace for tokens, to match free

(cherry picked from commit a0ce71a84374cc0600813a3101b76f89df04ee76)

src/afs/afs_pioctl.c

index 84a732986dd7b02df449ef92a3732369ece9bab6..c1cd5e16174f519581f4dce59f418fa3e9fe5b40 100644 (file)
@@ -1119,8 +1119,9 @@ afs_HandlePioctl(struct vnode *avp, afs_int32 acom,
     if (inSize > MAXPIOCTLTOKENLEN || inSize < 0 || ablob->out_size < 0)
        return E2BIG;
 
+    /* Note that we use osi_Alloc for large allocs and osi_AllocLargeSpace for small ones */
     if (inSize > AFS_LRALLOCSIZ) {
-       inData = osi_AllocLargeSpace(inSize + 1);
+       inData = osi_Alloc(inSize + 1);
     } else {
        inData = osi_AllocLargeSpace(AFS_LRALLOCSIZ);
     }