commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 08/98: proc: fix error handling in S_proc_exception_raise


From: Samuel Thibault
Subject: [hurd] 08/98: proc: fix error handling in S_proc_exception_raise
Date: Tue, 14 Jan 2014 01:59:58 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 59499c6189fd0871b46acf7c3c1a67c00bba9956
Author: Justus Winter <address@hidden>
Date:   Wed Nov 6 15:21:39 2013 +0100

    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.
---
 proc/mgt.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/proc/mgt.c b/proc/mgt.c
index d7ad296..5db1fe8 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:

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

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