diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-08-27 20:42:03 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-08-27 20:42:03 +0000 |
commit | 98772f6daebeeed94ded01fa3f134a09b1f8deaf (patch) | |
tree | ee7b018c6123a94d77fda72b38fbe18744d7e6a7 /sys | |
parent | 3e171169b10e67ce701afa04c6dab43b70a30b31 (diff) |
Harmless sizeof ptr bug in ppc_check_procid(); ok drahn@ kettenis@
Diffstat (limited to 'sys')
-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)); } } |