svn commit: r224963 - user/adrian/if_ath_tx/sys/dev/ath
Adrian Chadd
adrian at FreeBSD.org
Thu Aug 18 08:45:35 UTC 2011
Author: adrian
Date: Thu Aug 18 08:45:35 2011
New Revision: 224963
URL: http://svn.freebsd.org/changeset/base/224963
Log:
Clear bf_next when a buffer is recycled, just to ensure things
aren't pointing to random memory.
Modified:
user/adrian/if_ath_tx/sys/dev/ath/if_ath.c
Modified: user/adrian/if_ath_tx/sys/dev/ath/if_ath.c
==============================================================================
--- user/adrian/if_ath_tx/sys/dev/ath/if_ath.c Thu Aug 18 08:42:39 2011 (r224962)
+++ user/adrian/if_ath_tx/sys/dev/ath/if_ath.c Thu Aug 18 08:45:35 2011 (r224963)
@@ -1855,6 +1855,7 @@ _ath_getbuf_locked(struct ath_softc *sc)
STAILQ_FIRST(&sc->sc_txbuf) == NULL ?
"out of xmit buffers" : "xmit buffer busy");
}
+ bf->bf_next = NULL; /* XXX just to be sure */
return bf;
}
More information about the svn-src-user
mailing list