[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] acpi/pmstat.c: refer to the array after range check.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1223629254 -3600 # Node ID a175b2c039ed2481e4064a8256bd29f15c98d0d1 # Parent 8f5a67f466e297535f84cc88eaaa2e71f37f2963 acpi/pmstat.c: refer to the array after range check. Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx> --- xen/drivers/acpi/pmstat.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -r 8f5a67f466e2 -r a175b2c039ed xen/drivers/acpi/pmstat.c --- a/xen/drivers/acpi/pmstat.c Fri Oct 10 10:00:21 2008 +0100 +++ b/xen/drivers/acpi/pmstat.c Fri Oct 10 10:00:54 2008 +0100 @@ -50,10 +50,11 @@ int do_get_pm_info(struct xen_sysctl_get int do_get_pm_info(struct xen_sysctl_get_pmstat *op) { int ret = 0; - const struct processor_pminfo *pmpt = processor_pminfo[op->cpuid]; + const struct processor_pminfo *pmpt; if ( (op->cpuid >= NR_CPUS) || !cpu_online(op->cpuid) ) return -EINVAL; + pmpt = processor_pminfo[op->cpuid]; switch ( op->type & PMSTAT_CATEGORY_MASK ) { _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |