Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm fix leak.
details: https://anonhg.NetBSD.org/src/rev/aa6f3651c19c
branches: trunk
changeset: 332440:aa6f3651c19c
user: christos <christos%NetBSD.org@localhost>
date: Sun Sep 21 15:46:44 2014 +0000
description:
fix leak.
diffstat:
sys/arch/arm/iomd/iomd_irqhandler.c | 8 +++++---
sys/arch/arm/ofw/ofw_irqhandler.c | 8 +++++---
2 files changed, 10 insertions(+), 6 deletions(-)
diffs (60 lines):
diff -r 3ad6bce5f547 -r aa6f3651c19c sys/arch/arm/iomd/iomd_irqhandler.c
--- a/sys/arch/arm/iomd/iomd_irqhandler.c Sun Sep 21 15:43:11 2014 +0000
+++ b/sys/arch/arm/iomd/iomd_irqhandler.c Sun Sep 21 15:46:44 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iomd_irqhandler.c,v 1.20 2014/03/26 19:44:51 christos Exp $ */
+/* $NetBSD: iomd_irqhandler.c,v 1.21 2014/09/21 15:46:44 christos Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: iomd_irqhandler.c,v 1.20 2014/03/26 19:44:51 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: iomd_irqhandler.c,v 1.21 2014/09/21 15:46:44 christos Exp $");
#include "opt_irqstats.h"
@@ -356,8 +356,10 @@
ih->ih_arg = ih_arg;
ih->ih_flags = 0;
- if (irq_claim(irq, ih) != 0)
+ if (irq_claim(irq, ih) != 0) {
+ free(ih, M_DEVBUF);
return NULL;
+ }
return ih;
}
diff -r 3ad6bce5f547 -r aa6f3651c19c sys/arch/arm/ofw/ofw_irqhandler.c
--- a/sys/arch/arm/ofw/ofw_irqhandler.c Sun Sep 21 15:43:11 2014 +0000
+++ b/sys/arch/arm/ofw/ofw_irqhandler.c Sun Sep 21 15:46:44 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ofw_irqhandler.c,v 1.20 2014/06/20 13:17:59 joerg Exp $ */
+/* $NetBSD: ofw_irqhandler.c,v 1.21 2014/09/21 15:47:29 christos Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ofw_irqhandler.c,v 1.20 2014/06/20 13:17:59 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofw_irqhandler.c,v 1.21 2014/09/21 15:47:29 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -301,8 +301,10 @@
ih->ih_arg = ih_arg;
ih->ih_flags = 0;
- if (irq_claim(irq, ih, group, name) != 0)
+ if (irq_claim(irq, ih, group, name) != 0) {
+ free(ih, M_DEVBUF);
return(NULL);
+ }
return(ih);
}
Home |
Main Index |
Thread Index |
Old Index