VirtualBox

Changeset 8967 in vbox for trunk


Ignore:
Timestamp:
May 20, 2008 4:51:08 PM (17 years ago)
Author:
vboxsync
Message:

Linux vboxadd kernel module: Fixed guest kernel crash during shutdown. Sometimes we received interrupts during module unloading.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/module/vboxmod.c

    r8694 r8967  
    2424
    2525/* #define IRQ_DEBUG */
    26 // #define IOCTL_DEBUG
     26/* #define IOCTL_DEBUG */
    2727#ifdef IOCTL_DEBUG
    2828# define IOCTL_ENTRY(name, arg) \
     
    676676    else
    677677    {
     678        /* we might be attached to a shared interrupt together with another device. */
    678679        Log(("vboxadd IRQ_DEBUG: stale IRQ mem=%p events=%d devevents=%#x\n",
    679680             vboxDev->pVMMDevMemory,
     
    816817    if (vboxDev)
    817818    {
     819        /* at first detach from IRQ! */
     820        if (vboxDev->irq)
     821            free_irq(vboxDev->irq, vboxDev);
    818822        if (vboxDev->hypervisorStart)
    819         {
    820823            vboxadd_free_hypervisor();
    821         }
    822824        if (vboxDev->irqAckRequest)
    823825        {
     
    829831        if (vboxDev->vmmdevmem)
    830832            release_mem_region(vboxDev->vmmdevmem, vboxDev->vmmdevmem_size);
    831         if (vboxDev->irq)
    832             free_irq(vboxDev->irq, vboxDev);
    833833        kfree(vboxDev);
    834834        vboxDev = NULL;
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