diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-11-05 18:58:51 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-11-05 18:58:51 +0000 |
commit | 32969cd006895ee5c596b880298ac519be562bc5 (patch) | |
tree | 1ae24be8dae21b413fec5cd9f5161d688dbebef4 /sys | |
parent | d702fa19e4d3b6ae4f2ed91e4508232d50500334 (diff) |
Correctly release resources in intc_free_ih().
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sh/sh/interrupt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/sh/sh/interrupt.c b/sys/arch/sh/sh/interrupt.c index 5871aaf03ca..93a557634b7 100644 --- a/sys/arch/sh/sh/interrupt.c +++ b/sys/arch/sh/sh/interrupt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: interrupt.c,v 1.3 2006/10/23 19:44:54 drahn Exp $ */ +/* $OpenBSD: interrupt.c,v 1.4 2006/11/05 18:58:50 miod Exp $ */ /* $NetBSD: interrupt.c,v 1.18 2006/01/25 00:02:57 uwe Exp $ */ /*- @@ -395,6 +395,7 @@ intc_alloc_ih(void) void intc_free_ih(struct intc_intrhand *ih) { + ih->ih_idx = 0; memset(ih, 0, sizeof(*ih)); } |