summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/syscall/lgrpsys.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/syscall/lgrpsys.c')
-rw-r--r--usr/src/uts/common/syscall/lgrpsys.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/src/uts/common/syscall/lgrpsys.c b/usr/src/uts/common/syscall/lgrpsys.c
index 34bd08fd12..37ab75326f 100644
--- a/usr/src/uts/common/syscall/lgrpsys.c
+++ b/usr/src/uts/common/syscall/lgrpsys.c
@@ -747,6 +747,7 @@ lgrp_affinity_set(lgrp_affinity_args_t *ap)
if (idtype != P_LWPID && idtype != P_PID)
return (set_errno(EINVAL));
+ retval = EINVAL;
/*
* Set given LWP's or process' affinity for specified lgroup
*/