panic: sf_buf_free: freeing free sf_buf

Matthew Dillon dillon at
Mon Oct 20 07:56:54 PDT 2008

:Please nuke the old patch I sent to you on IRC and test following one:
:Best Regards,

    FreeBSD has a cute atomic_fetchadd_int() function that can also be
    used.  It is in /archive/FreeBSD-current/src/sys/i386/include/atomic.h.

    Instead of:


    You would do:

	if (atomic_fetchadd_int(&sfm->mref_count, -1) == 1) {
		... last ref went away ...

					Matthew Dillon 
					<dillon at>

More information about the Bugs mailing list