[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xsm: Error code consistency
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |