diff options
author | 2009-08-27 20:42:01 +0000 | |
---|---|---|
committer | 2009-08-27 20:42:01 +0000 | |
commit | f760d46606ebfc044177d21f629a748cc684eec4 (patch) | |
tree | b389d7d5a59c559eaea9acf391221cd48f1e338c | |
parent | malloc() last two args were swapped, amazing things did not break; ok kettenis@ (diff) | |
download | wireguard-openbsd-f760d46606ebfc044177d21f629a748cc684eec4.tar.xz wireguard-openbsd-f760d46606ebfc044177d21f629a748cc684eec4.zip |
Harmless sizeof ptr bug in ppc_check_procid(); ok drahn@ kettenis@
-rw-r--r-- | sys/arch/macppc/macppc/cpu.c | 4 | ||||
-rw-r--r-- | sys/arch/socppc/socppc/cpu.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/macppc/macppc/cpu.c b/sys/arch/macppc/macppc/cpu.c index c388919f549..ff0bf64d184 100644 --- a/sys/arch/macppc/macppc/cpu.c +++ b/sys/arch/macppc/macppc/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.63 2009/06/09 01:12:38 deraadt Exp $ */ +/* $OpenBSD: cpu.c,v 1.64 2009/08/27 20:42:01 miod Exp $ */ /* * Copyright (c) 1997 Per Fogelstrom @@ -231,7 +231,7 @@ ppc_check_procid() for (p = &nop32_start; p->s; p++) { for (inst = p->s; inst < p->e; inst++) *inst = nop_inst; - syncicache(p->s, (p->e - p->s) * sizeof(p->e)); + syncicache(p->s, (p->e - p->s) * sizeof(*p->e)); } } } diff --git a/sys/arch/socppc/socppc/cpu.c b/sys/arch/socppc/socppc/cpu.c index 05b8345d6e0..870f7d6367e 100644 --- a/sys/arch/socppc/socppc/cpu.c +++ b/sys/arch/socppc/socppc/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.2 2009/02/17 21:35:56 kettenis Exp $ */ +/* $OpenBSD: cpu.c,v 1.3 2009/08/27 20:42:02 miod Exp $ */ /* * Copyright (c) 2008 Mark Kettenis @@ -110,6 +110,6 @@ ppc_check_procid() for (p = &nop32_start; p->s; p++) { for (inst = p->s; inst < p->e; inst++) *inst = nop_inst; - syncicache(p->s, (p->e - p->s) * sizeof(p->e)); + syncicache(p->s, (p->e - p->s) * sizeof(*p->e)); } } |