VirtualBox

Changeset 97525 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Nov 14, 2022 9:53:34 AM (2 years ago)
Author:
vboxsync
Message:

Devices/VirtioCore: Initialize reference counter and magic always, fixes some debug assertions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VirtIO/VirtioCore.cpp

    r97292 r97525  
    848848    PVIRTQBUF pVirtqBuf = (PVIRTQBUF)RTMemAllocZ(sizeof(VIRTQBUF_T));
    849849    AssertReturn(pVirtqBuf, VERR_NO_MEMORY);
     850#endif /* !VIRTIO_VBUF_ON_STACK */
    850851    pVirtqBuf->u32Magic  = VIRTQBUF_MAGIC;
    851852    pVirtqBuf->cRefs     = 1;
    852 #endif /* !VIRTIO_VBUF_ON_STACK */
    853853    pVirtqBuf->uHeadIdx  = uHeadIdx;
    854854    pVirtqBuf->uVirtq    = uVirtq;
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