Module Name: src
Committed By: thorpej
Date: Wed Sep 21 20:23:57 UTC 2022
Modified Files:
src/sys/dev/pci: if_ste.c
Log Message:
Fix a memory leak in an extremely uncommon error path in ste_start().
To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/sys/dev/pci/if_ste.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_ste.c
diff -u src/sys/dev/pci/if_ste.c:1.62 src/sys/dev/pci/if_ste.c:1.63
--- src/sys/dev/pci/if_ste.c:1.62 Sun Mar 15 22:20:31 2020
+++ src/sys/dev/pci/if_ste.c Wed Sep 21 20:23:56 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ste.c,v 1.62 2020/03/15 22:20:31 thorpej Exp $ */
+/* $NetBSD: if_ste.c,v 1.63 2022/09/21 20:23:56 thorpej Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ste.c,v 1.62 2020/03/15 22:20:31 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ste.c,v 1.63 2022/09/21 20:23:56 thorpej Exp $");
#include <sys/param.h>
@@ -722,6 +722,7 @@ ste_start(struct ifnet *ifp)
printf("%s: unable to load Tx buffer, "
"error = %d\n", device_xname(sc->sc_dev),
error);
+ m_freem(m);
break;
}
}