VirtualBox

Ignore:
Timestamp:
Jan 15, 2013 6:10:36 AM (12 years ago)
Author:
vboxsync
Message:

NetFlt/Linux: Minor fix for kfree_skb usage (#6539)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c

    r44100 r44292  
    796796    {
    797797        Log(("vboxNetFltLinuxPacketHandler: Devices do not match, pThis may be wrong! pThis=%p\n", pThis));
    798         dev_kfree_skb(pBuf);
     798        kfree_skb(pBuf); /* This is a failure, so we use kfree_skb instead of dev_kfree_skb. */
    799799        return 0;
    800800    }
     
    815815        unsigned int uMacLen = pBuf->mac_len;
    816816        struct sk_buff *pCopy = skb_copy(pBuf, GFP_ATOMIC);
    817         kfree_skb(pBuf);
     817        dev_kfree_skb(pBuf);
    818818        if (!pCopy)
    819819        {
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