git: ifq_dispatch: Avoid accessing the mbuf after it has been queued to if_snd

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Sat Dec 22 07:29:05 PST 2012


commit fe53d127dabfbfba710a98e4f95834acf7de71b6
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Sat Dec 22 23:32:20 2012 +0800

    ifq_dispatch: Avoid accessing the mbuf after it has been queued to if_snd
    
    The enqueued mbuf could have be freed when it is used to update the stats.

Summary of changes:
 sys/net/if.c |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/fe53d127dabfbfba710a98e4f95834acf7de71b6


-- 
DragonFly BSD source repository



More information about the Commits mailing list