Ignore:
Timestamp:
Sep 8, 2022, 11:20:01 AM (3 years ago)
Author:
Paul Smedley
Message:

Fix GFP_ZERO support in vmalloc()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/lib32/memory.c

    r727 r728  
    424424void *__vmalloc(unsigned long size, gfp_t gfp_mask)
    425425{
    426         return vmalloc(size);
     426    LINEAR addr;
     427    addr = (LINEAR) vmalloc(size);
     428
     429    if (gfp_mask & __GFP_ZERO)
     430        memset((LINEAR)addr, 0, size);
     431
     432    return addr;
    427433}
    428434//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.