diff options
author | msmith <msmith@FreeBSD.org> | 2001-08-03 08:38:11 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 2001-08-03 08:38:11 +0000 |
commit | fde6a74d0c48c1cbdab2cd92c2cd3a9feb747a79 (patch) | |
tree | 1fdca973b2af956e14dfdf6999e9058be314e031 | |
parent | 4dfee5e935f7e902daa509e671c878346ba8b53f (diff) | |
download | FreeBSD-src-fde6a74d0c48c1cbdab2cd92c2cd3a9feb747a79.zip FreeBSD-src-fde6a74d0c48c1cbdab2cd92c2cd3a9feb747a79.tar.gz |
Move the resource pointer when we reallocate the buffer.
Submitted by: "neckpain@nettaxi.com" <neckpain@nettaxi.com>
-rw-r--r-- | sys/dev/acpica/acpi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index f319a91..990b754 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -1045,6 +1045,8 @@ acpi_AppendBufferResource(ACPI_BUFFER *buf, ACPI_RESOURCE *res) if ((newp = AcpiOsAllocate(buf->Length * 2)) == NULL) return(AE_NO_MEMORY); bcopy(buf->Pointer, newp, buf->Length); + rp = (ACPI_RESOURCE *)((u_int8_t *)newp + + ((u_int8_t *)rp - (u_int8_t *)buf->Pointer)); AcpiOsFree(buf->Pointer); buf->Pointer = newp; buf->Length += buf->Length; |