WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] cpupool: Strict parameter checking for cp

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] cpupool: Strict parameter checking for cpupool operations
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Thu, 10 Feb 2011 06:10:16 -0800
Delivery-date: Thu, 10 Feb 2011 06:10:30 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1297241078 0
# Node ID fc986c1314bc8d061aa9f0bebc0eb40624089d4b
# Parent  c23b711f92646a7e441ee80dbb15b9e1e87c83f8
cpupool: Strict parameter checking for cpupool operations

Some cpupool actions didn't check the cpupool_id exactly. For some
actions this doesn't make any sense, so refuse those actions if the
specified cpupool doesn't exist.

Signed-off-by: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
---
 xen/common/cpupool.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r c23b711f9264 -r fc986c1314bc xen/common/cpupool.c
--- a/xen/common/cpupool.c      Wed Feb 09 08:40:05 2011 +0000
+++ b/xen/common/cpupool.c      Wed Feb 09 08:44:38 2011 +0000
@@ -485,7 +485,7 @@ int cpupool_do_sysctl(struct xen_sysctl_
         ret = -EBUSY;
         if ( !cpu_isset(cpu, cpupool_free_cpus) )
             goto addcpu_out;
-        c = cpupool_find_by_id(op->cpupool_id, 0);
+        c = cpupool_find_by_id(op->cpupool_id, 1);
         ret = -ENOENT;
         if ( c == NULL )
             goto addcpu_out;
@@ -501,7 +501,7 @@ int cpupool_do_sysctl(struct xen_sysctl_
     {
         unsigned cpu;
 
-        c = __cpupool_get_by_id(op->cpupool_id, 0);
+        c = __cpupool_get_by_id(op->cpupool_id, 1);
         ret = -ENOENT;
         if ( c == NULL )
             break;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] cpupool: Strict parameter checking for cpupool operations, Xen patchbot-unstable <=