Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Dec 2009 11:06:42 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r200768 - stable/8/sys/compat/linux
Message-ID:  <200912211106.nBLB6gRQ025945@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Mon Dec 21 11:06:41 2009
New Revision: 200768
URL: http://svn.freebsd.org/changeset/base/200768

Log:
  MFC r200667:
  Return earlier from linux_do_tkill() when supplied signal number is 0.

Modified:
  stable/8/sys/compat/linux/linux_signal.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/compat/linux/linux_signal.c
==============================================================================
--- stable/8/sys/compat/linux/linux_signal.c	Mon Dec 21 10:01:03 2009	(r200767)
+++ stable/8/sys/compat/linux/linux_signal.c	Mon Dec 21 11:06:41 2009	(r200768)
@@ -565,7 +565,7 @@ linux_do_tkill(struct thread *td, l_int 
 
 	AUDIT_ARG_PROCESS(p);
 	error = p_cansignal(td, p, signum);
-	if (error)
+	if (error != 0 || signum == 0)
 		goto out;
 
 	error = ESRCH;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912211106.nBLB6gRQ025945>