summaryrefslogtreecommitdiff
path: root/proc
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2013-11-06 15:21:39 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2013-11-09 19:40:21 +0100
commit59499c6189fd0871b46acf7c3c1a67c00bba9956 (patch)
tree2ff488e02d204d25734c399e1fc0e9a1f5bb4b3a /proc
parent20fdd28047bfe8fabb7cebbda49386f4cab3c020 (diff)
proc: fix error handling in S_proc_exception_raise
Found using the Clang Static Analyzer. * proc/mgt.c (S_proc_exception_raise): Fix error propagation.
Diffstat (limited to 'proc')
-rw-r--r--proc/mgt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/proc/mgt.c b/proc/mgt.c
index d7ad2961..5db1fe8c 100644
--- a/proc/mgt.c
+++ b/proc/mgt.c
@@ -458,6 +458,8 @@ S_proc_exception_raise (mach_port_t excport,
ports_port_deref (e);
mach_port_deallocate (mach_task_self (), thread);
mach_port_deallocate (mach_task_self (), task);
+ if (err)
+ return err;
return MIG_NO_REPLY;
default: