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/arch/socppc | |
parent | 3e171169b10e67ce701afa04c6dab43b70a30b31 (diff) |
Harmless sizeof ptr bug in ppc_check_procid(); ok drahn@ kettenis@
Diffstat (limited to 'sys/arch/socppc')
-rw-r--r-- | sys/arch/socppc/socppc/cpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
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)); } } |