Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/if_ndis There are several leaks in here, just fix on...
details: https://anonhg.NetBSD.org/src/rev/c5bd03849678
branches: trunk
changeset: 348328:c5bd03849678
user: maxv <maxv%NetBSD.org@localhost>
date: Sat Oct 15 08:37:55 2016 +0000
description:
There are several leaks in here, just fix one that should have been fixed
in rev1.21
diffstat:
sys/dev/if_ndis/if_ndis_pci.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r d4f452431d01 -r c5bd03849678 sys/dev/if_ndis/if_ndis_pci.c
--- a/sys/dev/if_ndis/if_ndis_pci.c Sat Oct 15 08:30:42 2016 +0000
+++ b/sys/dev/if_ndis/if_ndis_pci.c Sat Oct 15 08:37:55 2016 +0000
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ndis_pci.c,v 1.21 2015/04/04 15:22:02 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ndis_pci.c,v 1.22 2016/10/15 08:37:55 maxv Exp $");
#ifdef __FreeBSD__
__FBSDID("$FreeBSD: src/sys/dev/if_ndis/if_ndis_pci.c,v 1.8.2.3 2005/03/31 04:24:36 wpaul Exp $");
#endif
@@ -300,7 +300,7 @@
if((sc->ndis_res_altmem =
malloc(sizeof(struct ndis_resource), M_DEVBUF, M_NOWAIT | M_ZERO)) == NULL) {
sc->error = ENOMEM;
- return;
+ goto out;
}
sc->ndis_res_altmem->res_base = base;
sc->ndis_res_altmem->res_size = size;
Home |
Main Index |
Thread Index |
Old Index