Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jul 2016 09:26:06 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r302997 - head/sys/kern
Message-ID:  <201607180926.u6I9Q6ak063552@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Mon Jul 18 09:26:06 2016
New Revision: 302997
URL: https://svnweb.freebsd.org/changeset/base/302997

Log:
  Redo the r302894: the very new value for a non-scheduled callout is -1.
  This was recently added in r290664.
  
  Noticed by:	hselasky
  PR:		210884

Modified:
  head/sys/kern/kern_timeout.c

Modified: head/sys/kern/kern_timeout.c
==============================================================================
--- head/sys/kern/kern_timeout.c	Mon Jul 18 09:19:45 2016	(r302996)
+++ head/sys/kern/kern_timeout.c	Mon Jul 18 09:26:06 2016	(r302997)
@@ -1381,7 +1381,7 @@ again:
 		CTR3(KTR_CALLOUT, "failed to stop %p func %p arg %p",
 		    c, c->c_func, c->c_arg);
 		CC_UNLOCK(cc);
-		return (0);
+		return (-1);
 	}
 
 	c->c_iflags &= ~CALLOUT_PENDING;



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