xsm: Error code consistency

Signed-off-by: Machon Gregory <mbgrego@tycho.ncsc.mil>
This commit is contained in:
Machon Gregory committed 2011-04-04 15:54:45 +01:00
1 parent 8afc46b70c
commit 2bbb3d0fe9
2 files changed
+8 -1

No files matched your search

+5 -1
View File
@@ -427,7 +427,11 @@ static inline int xsm_remove_range (struct domain *d, char *name, unsigned long
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
+3
View File
@@ -485,6 +485,9 @@ static int flask_security_sid(char *buf, uint32_t count)
if ( length < 0 )
goto out;
if ( len > count )
return -ERANGE;
memset(buf, 0, count);
memcpy(buf, context, len);
length = len;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.