From b7820945acae8467f00e4f2233410bdfbd15350f Mon Sep 17 00:00:00 2001 From: Paul Saab Date: Fri, 18 Feb 2005 22:14:40 +0000 Subject: [PATCH] Swap the arguments for CP so we copy the correct source and destination. --- sys/kern/kern_module.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/kern/kern_module.c b/sys/kern/kern_module.c index e101e6b6b2cc..e76565ec8d45 100644 --- a/sys/kern/kern_module.c +++ b/sys/kern/kern_module.c @@ -457,10 +457,10 @@ freebsd32_modstat(struct thread *td, struct freebsd32_modstat_args *uap) id = mod->id; refs = mod->refs; name = mod->name; - CP(data32, mod->data, intval); - CP(data32, mod->data, uintval); - CP(data32, mod->data, longval); - CP(data32, mod->data, ulongval); + CP(mod->data, data32, intval); + CP(mod->data, data32, uintval); + CP(mod->data, data32, longval); + CP(mod->data, data32, ulongval); MOD_SUNLOCK; stat32 = uap->stat;