git: mxge: Fix small buf allocation

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Mon Sep 16 05:36:12 PDT 2013


commit 8ebf015e0c91c2169177f7fd494679855d71f1d8
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Mon Sep 16 20:34:00 2013 +0800

    mxge: Fix small buf allocation
    
    - MB_WAIT should be used to allocate mbuf.
    - m_freem() instead of m_free() should be called if busdma error happens.
    - During initialization, there is no mbuf to be recycled; just return
      error.

Summary of changes:
 sys/dev/netif/mxge/if_mxge.c | 46 ++++++++++++++++++++++++++++++--------------
 1 file changed, 32 insertions(+), 14 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8ebf015e0c91c2169177f7fd494679855d71f1d8


-- 
DragonFly BSD source repository


More information about the Commits mailing list