summaryrefslogtreecommitdiffstats
path: root/sys/dev/de
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-09-20 02:29:56 +0000
committerpeter <peter@FreeBSD.org>1997-09-20 02:29:56 +0000
commite28110371d10d8786ddcae7b35258ab24617fa8d (patch)
tree6a79f445e0d8c8c54163c1bca85cf6d774dc0d9d /sys/dev/de
parente62fb2bfcb26305b5ab42729fcea05723ca1c92f (diff)
downloadFreeBSD-src-e28110371d10d8786ddcae7b35258ab24617fa8d.zip
FreeBSD-src-e28110371d10d8786ddcae7b35258ab24617fa8d.tar.gz
``oops''. I cut/pasted the original free()'s based on mark's suggestion
rather than extracting the diff from Mark's patch, but it turns out that I was freeing one allocation twice due to a previous cut/paste braino. My botch, not Mark's. Pointed out by: Mark Valentine <mv@pobox.com>
Diffstat (limited to 'sys/dev/de')
-rw-r--r--sys/dev/de/if_de.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/de/if_de.c b/sys/dev/de/if_de.c
index c2342e3..7a8d3da 100644
--- a/sys/dev/de/if_de.c
+++ b/sys/dev/de/if_de.c
@@ -21,7 +21,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: if_de.c,v 1.68 1997/09/11 15:27:34 peter Exp $
+ * $Id: if_de.c,v 1.69 1997/09/18 08:28:23 peter Exp $
*
*/
@@ -5057,8 +5057,8 @@ tulip_pci_attach(
if (sc->tulip_rxdescs == NULL || sc->tulip_txdescs == NULL) {
if (sc->tulip_rxdescs)
free((caddr_t) sc->tulip_rxdescs, M_DEVBUF);
- if (sc->tulip_rxdescs)
- free((caddr_t) sc->tulip_rxdescs, M_DEVBUF);
+ if (sc->tulip_txdescs)
+ free((caddr_t) sc->tulip_txdescs, M_DEVBUF);
free((caddr_t) sc, M_DEVBUF);
return;
}
@@ -5126,7 +5126,7 @@ tulip_pci_attach(
#endif
if (!retval) {
free((caddr_t) sc->tulip_rxdescs, M_DEVBUF);
- free((caddr_t) sc->tulip_rxdescs, M_DEVBUF);
+ free((caddr_t) sc->tulip_txdescs, M_DEVBUF);
free((caddr_t) sc, M_DEVBUF);
return;
}
OpenPOWER on IntegriCloud