VirtualBox

Changeset 96717 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 13, 2022 10:16:54 AM (2 years ago)
Author:
vboxsync
Message:

iprt: Linux: r0drv: Prevent build failure on 5.8+ 32-bit kernels, bugref:4567:65.

Replace vmalloc call with AssertMsgFailed. This code branch should not
be reached by 32-bit 5.8+ kernel. If it is a case, we should be noticed
about that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c

    r96716 r96717  
    280280
    281281#elif defined(PAGE_KERNEL_EXEC) && defined(CONFIG_X86_PAE)
     282# if RTLNX_VER_MIN(5,8,0)
     283        AssertMsgFailed(("This point should not be reached, please file a bug\n"));
     284        pHdr = NULL;
     285# else
    282286        pHdr = (PRTMEMHDR)__vmalloc(cb + sizeof(*pHdr), GFP_KERNEL | __GFP_HIGHMEM | __GFP_NOWARN, MY_PAGE_KERNEL_EXEC);
     287# endif
    283288#else
    284289        pHdr = (PRTMEMHDR)vmalloc(cb + sizeof(*pHdr));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette