Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3]: src/sys/dev/pci Pull up following revision(s) (requested by s...



details:   https://anonhg.NetBSD.org/src/rev/0c5c0767a4b4
branches:  netbsd-3
changeset: 577854:0c5c0767a4b4
user:      riz <riz%NetBSD.org@localhost>
date:      Sun Feb 26 21:33:27 2006 +0000

description:
Pull up following revision(s) (requested by simonb in ticket #1182):
        sys/dev/pci/twe.c: revision 1.74
Fix memory leak in the TWEIO_GET_PARAM ioctl.
Tested by gendalia@.
--

diffstat:

 sys/dev/pci/twe.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r d8bd05c6542b -r 0c5c0767a4b4 sys/dev/pci/twe.c
--- a/sys/dev/pci/twe.c Sun Feb 26 21:23:45 2006 +0000
+++ b/sys/dev/pci/twe.c Sun Feb 26 21:33:27 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: twe.c,v 1.64 2005/03/16 17:11:17 erh Exp $     */
+/*     $NetBSD: twe.c,v 1.64.2.1 2006/02/26 21:33:27 riz Exp $ */
 
 /*-
  * Copyright (c) 2000, 2001, 2002, 2003, 2004 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: twe.c,v 1.64 2005/03/16 17:11:17 erh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: twe.c,v 1.64.2.1 2006/02/26 21:33:27 riz Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1901,6 +1901,7 @@
                }
                error = copyout(param->tp_data, tp->tp_data,
                    param->tp_param_size);
+               free(param, M_DEVBUF);
                goto done;
 
        case TWEIO_SET_PARAM:



Home | Main Index | Thread Index | Old Index