VirtualBox

Ignore:
Timestamp:
Apr 23, 2009 3:09:02 PM (16 years ago)
Author:
vboxsync
Message:

#3854: Error checking for skb_gso_segment().

File:
1 edited

Legend:

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

    r19135 r19147  
    636636#endif
    637637
    638         for (pSegment = VBOX_SKB_GSO_SEGMENT(pBuf); pSegment; pSegment = pNext)
     638        pSegment = VBOX_SKB_GSO_SEGMENT(pBuf);
     639        if (IS_ERR(pSegment))
     640        {
     641            dev_kfree_skb(pBuf);
     642            LogRel(("VBoxNetFlt: Failed to segment a packet (%d).\n", PRT_ERR(pBuf)));
     643            return;
     644        }
     645        for (; pSegment; pSegment = pNext)
    639646        {
    640647#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 18)
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