Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Sep 2007 17:50:17 +0000 (UTC)
From:      "Christian S.J. Peron" <csjp@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/net if_stf.c src/sys/netinet in_gif.c
Message-ID:  <200709231750.l8NHoHcg012643@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
csjp        2007-09-23 17:50:17 UTC

  FreeBSD src repository

  Modified files:
    sys/net              if_stf.c 
    sys/netinet          in_gif.c 
  Log:
  Certain consumers of rtalloc like gif(4) and if_stf(4) lookup the
  route and once they are done with it, call rtfree().  rtfree() should
  only be used when we are certain we hold the last reference to the
  route.  This bug results in console messages like the following:
  
  rtfree: 0xc40f7000 has 1 refs
  
  This patch switches the rtfree() to use RTFREE_LOCKED() instead,
  which should handle the reference counting on the route better.
  
  Approved by:    re@ (gnn)
  Reviewed by:    bms
  Reported by:    many via net@ and current@
  Tested by:      many
  
  Revision  Changes    Path
  1.60      +2 -2      src/sys/net/if_stf.c
  1.37      +2 -2      src/sys/netinet/in_gif.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709231750.l8NHoHcg012643>