summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2002-10-20 23:39:43 +0000
committermarcel <marcel@FreeBSD.org>2002-10-20 23:39:43 +0000
commit41e0c909136c41245c2ef9bc94b441c09301e9ec (patch)
treef6557d431334a29ccebf64c854a966c90f4f7d16 /sys/ia64
parentf70d2339384264994949fcacf0bb4b036c6a9b3a (diff)
downloadFreeBSD-src-41e0c909136c41245c2ef9bc94b441c09301e9ec.zip
FreeBSD-src-41e0c909136c41245c2ef9bc94b441c09301e9ec.tar.gz
In cb_dumphdr() we were calling buf_write() with di->priv as the
pointer to a dumperinfo instead of di. A brainfart, surely. This bug went unnoticed for all this time because the pointer is only used by buf_write() when it can write a completely filled buffer to the dump device. This depends on the number of memory chunks that needs to be dumped. This has apparently been low enough that it has never happened up until this point.
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/ia64/dump_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ia64/ia64/dump_machdep.c b/sys/ia64/ia64/dump_machdep.c
index 2af310f..0099462 100644
--- a/sys/ia64/ia64/dump_machdep.c
+++ b/sys/ia64/ia64/dump_machdep.c
@@ -174,7 +174,7 @@ cb_dumphdr(EFI_MEMORY_DESCRIPTOR *mdp, int seqnr, void *arg)
phdr.p_memsz = mdp->NumberOfPages << EFI_PAGE_SHIFT;
phdr.p_align = EFI_PAGE_SIZE;
- error = buf_write(di->priv, (char*)&phdr, sizeof(phdr));
+ error = buf_write(di, (char*)&phdr, sizeof(phdr));
fileofs += phdr.p_filesz;
return (error);
}
OpenPOWER on IntegriCloud