Searched hist:172307 (Results 1 - 1 of 1) sorted by relevance

/freebsd-10.1-release/sys/net/
H A Dif_stf.cdiff 172307 Sun Sep 23 15:50:17 MDT 2007 csjp 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

Completed in 123 milliseconds