~ubuntu-branches/ubuntu/vivid/virtualbox-ose/vivid

« back to all changes in this revision

Viewing changes to src/VBox/Devices/Network/slirp/mbuf.c

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2010-03-11 17:16:37 UTC
  • mfrom: (0.3.4 upstream) (0.4.8 sid)
  • Revision ID: james.westby@ubuntu.com-20100311171637-43z64ia3ccpj8vqn
Tags: 3.1.4-dfsg-2ubuntu1
* Merge from Debian unstable (LP: #528561), remaining changes:
  - VirtualBox should go in Accessories, not in System tools (LP: #288590)
    - debian/virtualbox-ose-qt.files/virtualbox-ose.desktop
  - Add Apport hook
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Add Launchpad integration
    - debian/control
    - debian/lpi-bug.xpm
    - debian/patches/u02-lp-integration.dpatch
  - Replace *-source packages with transitional packages for *-dkms
* Fix crash in vboxvideo_drm with kernel 2.6.33 / backported drm code
  (LP: #535297)
* Add a list of linux-headers packages to the apport hook
* Update debian/patches/u02-lp-integration.dpatch with a
  DEP-3 compliant header
* Add ${misc:Depends} to virtualbox-ose-source and virtualbox-ose-guest-source
  Depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
    msize_init(pData);
89
89
#if 1
90
90
    rc = RTCritSectInit(&pData->cs_mbuf_zone);
91
 
    AssertReleaseRC(rc);
 
91
    AssertRC(rc);
92
92
    rc = mbuf_zone_init(pData);
93
93
    Assert((rc == 0));
94
94
#endif
129
129
    DEBUG_CALL("m_get");
130
130
    
131
131
    rc = RTCritSectEnter(&pData->cs_mbuf_zone);
132
 
    AssertReleaseRC(rc);
 
132
    AssertRC(rc);
133
133
 
134
134
recheck_zone:
135
135
    if (m_freelist.m_next == &m_freelist)
181
181
end_error:
182
182
    DEBUG_ARG("m = %lx", (long )m);
183
183
    rc = RTCritSectLeave(&pData->cs_mbuf_zone);
184
 
    AssertReleaseRC(rc);
 
184
    AssertRC(rc);
185
185
    return m;
186
186
}
187
187
 
193
193
    DEBUG_ARG("m = %lx", (long )m);
194
194
 
195
195
    rc = RTCritSectEnter(&pData->cs_mbuf_zone);
196
 
    AssertReleaseRC(rc);
 
196
    AssertRC(rc);
197
197
    mbuf_alloced--;
198
198
    if(m)
199
199
    {
228
228
        STAM_COUNTER_INC(&pData->StatMBufAllocation);
229
229
    } /* if(m) */
230
230
    rc = RTCritSectLeave(&pData->cs_mbuf_zone);
231
 
    AssertReleaseRC(rc);
 
231
    AssertRC(rc);
232
232
}
233
233
 
234
234
/* update macros for m_get/m_free*/