From d91f1187f9eddede4bdb56d8b269b957b63e7e83 Mon Sep 17 00:00:00 2001 From: martin Date: Mon, 17 Jul 2006 11:36:50 +0000 Subject: [PATCH] Back out previous - it apparently was not even compile tested. --- sys/arch/sparc64/sparc64/netbsd32_machdep.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/arch/sparc64/sparc64/netbsd32_machdep.c b/sys/arch/sparc64/sparc64/netbsd32_machdep.c index 624794941d67..b6af7ce12f9f 100644 --- a/sys/arch/sparc64/sparc64/netbsd32_machdep.c +++ b/sys/arch/sparc64/sparc64/netbsd32_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: netbsd32_machdep.c,v 1.61 2006/07/15 20:52:59 gdamore Exp $ */ +/* $NetBSD: netbsd32_machdep.c,v 1.62 2006/07/17 11:36:50 martin Exp $ */ /* * Copyright (c) 1998, 2001 Matthew R. Green @@ -29,7 +29,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.61 2006/07/15 20:52:59 gdamore Exp $"); +__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.62 2006/07/17 11:36:50 martin Exp $"); #ifdef _KERNEL_OPT #include "opt_compat_netbsd.h" @@ -1154,7 +1154,7 @@ netbsd32_md_ioctl(fp, cmd, data32, l) struct lwp *l; { u_int size; - caddr_t data; + caddr_t data, memp = NULL; #define STK_PARAMS 128 u_long stkbuf[STK_PARAMS/sizeof(u_long)]; int error; @@ -1179,6 +1179,8 @@ netbsd32_md_ioctl(fp, cmd, data32, l) default: error = (*fp->f_ops->fo_ioctl)(fp, cmd, data32, l); } + if (memp) + free(memp, M_IOCTLOPS); return (error); }