VirtualBox

Ignore:
Timestamp:
Jan 8, 2008 2:16:38 PM (17 years ago)
Author:
vboxsync
Message:

Guest Additions (Linux): fixed a recession in the VBOXGUEST_IOCTL_VMMREQUEST kernel code

File:
1 edited

Legend:

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

    r6278 r6279  
    316316 *
    317317 */
    318 AssertCompile((sizeof(VMMDevRequestHeader) == _IOC_SIZE(IOCTL_VBOXGUEST_VMMREQUEST)));
    319 
    320318static int vboxadd_ioctl(struct inode *inode, struct file *filp,
    321319                         unsigned int cmd, unsigned long arg)
     
    353351            int rc;
    354352
    355             if (copy_from_user(&reqHeader, (void*)arg, _IOC_SIZE(cmd)))
     353            if (copy_from_user(&reqHeader, (void*)arg, sizeof(reqHeader)))
    356354            {
    357355                LogRelFunc(("IOCTL_VBOXGUEST_VMMREQUEST: copy_from_user failed for vmm request!\n"));
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