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] xsm: Error code consistency

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xsm: Error code consistency
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Mon, 04 Apr 2011 21:20:09 +0100
Delivery-date: Mon, 04 Apr 2011 13:20:24 -0700
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 Machon Gregory <mbgrego@xxxxxxxxxxxxxx>
# Date 1301928885 -3600
# Node ID 967e1925775ce52ae6cde08a82bbde9dca72347d
# Parent  9fcfa0ca31419e7988804863694a13977906f65f
xsm: Error code consistency

Signed-off-by: Machon Gregory <mbgrego@xxxxxxxxxxxxxx>
---


diff -r 9fcfa0ca3141 -r 967e1925775c xen/include/xsm/xsm.h
--- a/xen/include/xsm/xsm.h     Mon Apr 04 14:54:46 2011 +0100
+++ b/xen/include/xsm/xsm.h     Mon Apr 04 15:54:45 2011 +0100
@@ -427,7 +427,11 @@
 
 static inline long __do_xsm_op (XEN_GUEST_HANDLE(xsm_op_t) op)
 {
-    return xsm_call(__do_xsm_op(op));
+#ifdef XSM_ENABLE
+    return xsm_ops->__do_xsm_op(op);
+#else
+    return -ENOSYS;
+#endif
 }
 
 #ifdef XSM_ENABLE
diff -r 9fcfa0ca3141 -r 967e1925775c xen/xsm/flask/flask_op.c
--- a/xen/xsm/flask/flask_op.c  Mon Apr 04 14:54:46 2011 +0100
+++ b/xen/xsm/flask/flask_op.c  Mon Apr 04 15:54:45 2011 +0100
@@ -485,6 +485,9 @@
     if ( length < 0 )
         goto out;
 
+    if ( len > count )
+        return -ERANGE; 
+
     memset(buf, 0, count);
     memcpy(buf, context, len);
     length = len;

_______________________________________________
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] xsm: Error code consistency, Xen patchbot-unstable <=