|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] acpi/pmstat.c: refer to the array after range check.
acpi/pmstat.c: refer to the array after range check.
make reference to the array after range check.
Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
diff -r 16553e1f90dd xen/drivers/acpi/pmstat.c
--- a/xen/drivers/acpi/pmstat.c Fri Oct 10 11:30:17 2008 +0900
+++ b/xen/drivers/acpi/pmstat.c Fri Oct 10 11:31:55 2008 +0900
@@ -50,10 +50,11 @@
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 )
{
--
yamahata
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH] acpi/pmstat.c: refer to the array after range check.,
Isaku Yamahata <=
|
|
|
|
|