Date: Thu, 18 Aug 2011 08:45:35 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r224963 - user/adrian/if_ath_tx/sys/dev/ath Message-ID: <201108180845.p7I8jZFl046460@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108180845.p7I8jZFl046460>