~ubuntu-branches/ubuntu/vivid/qemu-linaro/vivid

« back to all changes in this revision

Viewing changes to slirp/mbuf.c

  • Committer: Ricardo Salveti de Araujo
  • Date: 2012-09-20 18:39:31 UTC
  • mfrom: (12922.1.2 qemu-linaro)
  • Revision ID: ricardo.salveti@linaro.org-20120920183931-sp3cg6kpdl8dmwo9
* New upstream release.
  - support emulated systems with more than 2G of memory. (LP: #1030588)
* Drop powerpc-missing-include.patch - merged upstream.
* Update debian/control:
  - drop perl build dependency.
  - add libfdt-dev build dependency.
* Update debian/qemu-keymaps.install file.
* Update debian/rules:
  - update QEMU_CPU for ARM architecture: armv4l -> armv7l.
  - update conf_audio_drv: default to PulseAudio since PA is the default on
    Ubuntu.
  - enable KVM on ARM architecture.
  - enable flat device tree support (--enable-fdt). (LP: #1030594)

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    slirp->m_usedlist.m_next = slirp->m_usedlist.m_prev = &slirp->m_usedlist;
33
33
}
34
34
 
 
35
void m_cleanup(Slirp *slirp)
 
36
{
 
37
    struct mbuf *m, *next;
 
38
 
 
39
    m = slirp->m_usedlist.m_next;
 
40
    while (m != &slirp->m_usedlist) {
 
41
        next = m->m_next;
 
42
        if (m->m_flags & M_EXT) {
 
43
            free(m->m_ext);
 
44
        }
 
45
        free(m);
 
46
        m = next;
 
47
    }
 
48
    m = slirp->m_freelist.m_next;
 
49
    while (m != &slirp->m_freelist) {
 
50
        next = m->m_next;
 
51
        free(m);
 
52
        m = next;
 
53
    }
 
54
}
 
55
 
35
56
/*
36
57
 * Get an mbuf from the free list, if there are none
37
58
 * malloc one