[OpenAFS] crash on AIX 5.2

Jim Rees rees@umich.edu
Tue, 11 Jan 2005 12:17:30 -0500


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.