bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 09/14] proc: fix error handling in S_proc_exception_raise


From: Justus Winter
Subject: [PATCH 09/14] proc: fix error handling in S_proc_exception_raise
Date: Fri, 8 Nov 2013 21:24:17 +0100

Found using the Clang Static Analyzer.

* proc/mgt.c (S_proc_exception_raise): Fix error propagation.
---
 proc/mgt.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/proc/mgt.c b/proc/mgt.c
index 4da2216..ad6355d 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:
-- 
1.7.10.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]