Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/atari/atari copy the leak fix to the other switch b...
details: https://anonhg.NetBSD.org/src/rev/2bec75dd4382
branches: trunk
changeset: 332533:2bec75dd4382
user: christos <christos%NetBSD.org@localhost>
date: Fri Sep 26 17:11:05 2014 +0000
description:
copy the leak fix to the other switch branch (from max)
diffstat:
sys/arch/atari/atari/intr.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r 20779b236722 -r 2bec75dd4382 sys/arch/atari/atari/intr.c
--- a/sys/arch/atari/atari/intr.c Fri Sep 26 16:30:32 2014 +0000
+++ b/sys/arch/atari/atari/intr.c Fri Sep 26 17:11:05 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intr.c,v 1.24 2014/09/21 15:49:21 christos Exp $ */
+/* $NetBSD: intr.c,v 1.25 2014/09/26 17:11:05 christos Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.24 2014/09/21 15:49:21 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.25 2014/09/26 17:11:05 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -141,14 +141,16 @@
ih->ih_intrcnt = &intrcnt_auto[vector-1];
break;
case USER_VEC:
- if (vector < UVEC_MIN || vector > UVEC_MAX)
+ if (vector < UVEC_MIN || vector > UVEC_MAX) {
+ free(ih, M_DEVBUF);
return NULL;
+ }
vec_list = &uservec_list[vector];
hard_vec = &uservects[vector];
ih->ih_intrcnt = &intrcnt_user[vector];
break;
default:
- printf("intr_establish: bogus vector type\n");
+ printf("%s: bogus vector type\n", __func__);
free(ih, M_DEVBUF);
return NULL;
}
Home |
Main Index |
Thread Index |
Old Index