I don't think this is your problem, but this looks wrong to me:

    if (inSize > AFS_LRALLOCSIZ) {
        inData = osi_AllocLargeSpace(inSize+1);
    } else {
        inData = osi_AllocLargeSpace(AFS_LRALLOCSIZ);
    }

That first one should be osi_Alloc, not osi_AllocLargeSpace.

Also I think this code could use a comment.  It's a bit confusing that
osi_AllocLargeSpace is being used for small allocs, and osi_Alloc is being
used for large ones.

The indentation is wrong, too.
_______________________________________________
OpenAFS-info mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-info

Reply via email to