Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jul 2016 09:28:32 +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: r302894 - head/sys/kern
Message-ID:  <201607150928.u6F9SW3h065100@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Fri Jul 15 09:28:32 2016
New Revision: 302894
URL: https://svnweb.freebsd.org/changeset/base/302894

Log:
  Fix regression introduced by r302350. The change of return value for a
  callout that wasn't scheduled at all was unintentional and yielded in
  several panics.
  
  PR:		210884

Modified:
  head/sys/kern/kern_timeout.c

Modified: head/sys/kern/kern_timeout.c
==============================================================================
--- head/sys/kern/kern_timeout.c	Fri Jul 15 09:23:18 2016	(r302893)
+++ head/sys/kern/kern_timeout.c	Fri Jul 15 09:28:32 2016	(r302894)
@@ -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 (cancelled);
+		return (0);
 	}
 
 	c->c_iflags &= ~CALLOUT_PENDING;



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