[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 32/64: Fix proc crashes
From: |
Samuel Thibault |
Subject: |
[hurd] 32/64: Fix proc crashes |
Date: |
Wed, 10 Dec 2014 15:17:05 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit b69b9c28b6628c7d736476d075d56ae137afd343
Author: Samuel Thibault <address@hidden>
Date: Thu Nov 27 01:24:43 2014 +0100
Fix proc crashes
* proc/notify.c (do_mach_notify_dead_name): When `pi' is NULL,
immediately return EOPNOTSUPP.
---
proc/notify.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/proc/notify.c b/proc/notify.c
index b6731ae..c5734b0 100644
--- a/proc/notify.c
+++ b/proc/notify.c
@@ -41,6 +41,9 @@ do_mach_notify_dead_name (struct port_info *pi,
{
struct proc *p;
+ if (!pi)
+ return EOPNOTSUPP;
+
if (pi->port_right == generic_port)
{
check_dead_execdata_notify (deadport);
@@ -50,8 +53,7 @@ do_mach_notify_dead_name (struct port_info *pi,
p = (struct proc *) pi;
- if (!p
- || p->p_pi.bucket != proc_bucket
+ if (p->p_pi.bucket != proc_bucket
|| p->p_pi.class != proc_class)
return EOPNOTSUPP;
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 11/64: Always canonicalize fstab entries with realpath, (continued)
- [hurd] 11/64: Always canonicalize fstab entries with realpath, Samuel Thibault, 2014/12/10
- [hurd] 23/64: startup: also open `console' for reading, Samuel Thibault, 2014/12/10
- [hurd] 26/64: boot: drop obsolete device procedures, Samuel Thibault, 2014/12/10
- [hurd] 16/64: init: add a minimalist init program, Samuel Thibault, 2014/12/10
- [hurd] 22/64: proc: gracefully handle failure to increase priority, Samuel Thibault, 2014/12/10
- [hurd] 25/64: boot: remove unused function `boot_script_read_file', Samuel Thibault, 2014/12/10
- [hurd] 31/64: libdiskfs: fix fabrication of protid, Samuel Thibault, 2014/12/10
- [hurd] 17/64: startup: do not pass signals on to the child, Samuel Thibault, 2014/12/10
- [hurd] 29/64: boot: improve the demuxer, Samuel Thibault, 2014/12/10
- [hurd] 14/64: procfs: do not hard-code the default argument values, Samuel Thibault, 2014/12/10
- [hurd] 32/64: Fix proc crashes,
Samuel Thibault <=
- [hurd] 13/64: Add proc_set_init_task, make runsystem pid 1, Samuel Thibault, 2014/12/10
- [hurd] 40/64: libnetfs: add a payload-aware intrans function, Samuel Thibault, 2014/12/10
- [hurd] 21/64: Makeconf: handle the gnumach protocol, Samuel Thibault, 2014/12/10
- [hurd] 39/64: libdiskfs: add payload-aware intrans functions, Samuel Thibault, 2014/12/10
- [hurd] 18/64: startup: be more specific in the shutdown message, Samuel Thibault, 2014/12/10
- [hurd] 42/64: libpager: add a payload-aware intrans function, Samuel Thibault, 2014/12/10
- [hurd] 19/64: startup: fix the declaration of the *_server functions, Samuel Thibault, 2014/12/10
- [hurd] 43/64: libcons: add a payload-aware intrans function, Samuel Thibault, 2014/12/10
- [hurd] 46/64: console-client: make the demuxer payload-aware, Samuel Thibault, 2014/12/10
- [hurd] 41/64: libtrivfs: add payload-aware intrans functions, Samuel Thibault, 2014/12/10