Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi don't run off the end of the source resource bu...



details:   https://anonhg.NetBSD.org/src/rev/6e64b300c00b
branches:  trunk
changeset: 328695:6e64b300c00b
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Mon Apr 14 01:56:18 2014 +0000

description:
don't run off the end of the source resource buffer

diffstat:

 sys/dev/acpi/acpi_pci_link.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ec39b7c92d98 -r 6e64b300c00b sys/dev/acpi/acpi_pci_link.c
--- a/sys/dev/acpi/acpi_pci_link.c      Sun Apr 13 20:58:26 2014 +0000
+++ b/sys/dev/acpi/acpi_pci_link.c      Mon Apr 14 01:56:18 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi_pci_link.c,v 1.20 2013/10/16 17:31:28 christos Exp $      */
+/*     $NetBSD: acpi_pci_link.c,v 1.21 2014/04/14 01:56:18 jakllsch Exp $      */
 
 /*-
  * Copyright (c) 2002 Mitsuru IWASAKI <iwasaki%jp.freebsd.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_pci_link.c,v 1.20 2013/10/16 17:31:28 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_pci_link.c,v 1.21 2014/04/14 01:56:18 jakllsch Exp $");
 
 #include <sys/param.h>
 #include <sys/malloc.h>
@@ -1262,7 +1262,7 @@
        }
 
        /* Insert the new resource. */
-       memcpy(rp, res, res->Length + ACPI_RS_SIZE_NO_DATA);
+       memcpy(rp, res, res->Length);
 
        /* And add the terminator. */
        rp = ACPI_NEXT_RESOURCE(rp);



Home | Main Index | Thread Index | Old Index