Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amiga/amiga spl leak, found by mootja
details: https://anonhg.NetBSD.org/src/rev/da5a78ef8fd7
branches: trunk
changeset: 355890:da5a78ef8fd7
user: maxv <maxv%NetBSD.org@localhost>
date: Sun Aug 20 11:03:04 2017 +0000
description:
spl leak, found by mootja
diffstat:
sys/arch/amiga/amiga/cc.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 9b7f67037665 -r da5a78ef8fd7 sys/arch/amiga/amiga/cc.c
--- a/sys/arch/amiga/amiga/cc.c Sun Aug 20 11:00:30 2017 +0000
+++ b/sys/arch/amiga/amiga/cc.c Sun Aug 20 11:03:04 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cc.c,v 1.26 2014/01/22 00:25:16 christos Exp $ */
+/* $NetBSD: cc.c,v 1.27 2017/08/20 11:03:04 maxv Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cc.c,v 1.26 2014/01/22 00:25:16 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cc.c,v 1.27 2017/08/20 11:03:04 maxv Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -503,8 +503,10 @@
if (size <= mn->size)
break;
- if (mn == NULL)
+ if (mn == NULL) {
+ splx(s);
return NULL;
+ }
if ((mn->size - size) <= sizeof (*mn)) {
/*
Home |
Main Index |
Thread Index |
Old Index