Module Name: src Committed By: christos Date: Mon Apr 27 17:41:26 UTC 2015
Modified Files: src/sys/dev/pci: if_ti.c Log Message: fix mbuf leak on failure (Brainy) To generate a diff of this commit: cvs rdiff -u -r1.93 -r1.94 src/sys/dev/pci/if_ti.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/if_ti.c diff -u src/sys/dev/pci/if_ti.c:1.93 src/sys/dev/pci/if_ti.c:1.94 --- src/sys/dev/pci/if_ti.c:1.93 Sat Mar 29 15:28:25 2014 +++ src/sys/dev/pci/if_ti.c Mon Apr 27 13:41:26 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: if_ti.c,v 1.93 2014/03/29 19:28:25 christos Exp $ */ +/* $NetBSD: if_ti.c,v 1.94 2015/04/27 17:41:26 christos Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -81,7 +81,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_ti.c,v 1.93 2014/03/29 19:28:25 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_ti.c,v 1.94 2015/04/27 17:41:26 christos Exp $"); #include "opt_inet.h" @@ -733,6 +733,7 @@ ti_newbuf_std(struct ti_softc *sc, int i BUS_DMA_READ|BUS_DMA_NOWAIT)) != 0) { aprint_error_dev(sc->sc_dev, "can't load recv map, error = %d\n", error); + m_freem(m_new); return (ENOMEM); } } else {