Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Feb 2018 20:04:40 +0000 (UTC)
From:      Mariusz Zaborski <oshogbo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329528 - head/sys/kern
Message-ID:  <201802182004.w1IK4ecR056329@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: oshogbo
Date: Sun Feb 18 20:04:39 2018
New Revision: 329528
URL: https://svnweb.freebsd.org/changeset/base/329528

Log:
  Fix broken assertion in r329520.
  
  Reported by:	pho@ lwhsu@

Modified:
  head/sys/kern/sys_capability.c

Modified: head/sys/kern/sys_capability.c
==============================================================================
--- head/sys/kern/sys_capability.c	Sun Feb 18 19:46:57 2018	(r329527)
+++ head/sys/kern/sys_capability.c	Sun Feb 18 20:04:39 2018	(r329528)
@@ -352,7 +352,7 @@ cap_ioctl_check(struct filedesc *fdp, int fd, u_long c
 		("%s: invalid fd=%d", __func__, fd));
 
 	fdep = fdeget_locked(fdp, fd);
-	KASSERT(fdep == NULL,
+	KASSERT(fdep != NULL,
 	    ("%s: invalid fd=%d", __func__, fd));
 
 	ncmds = fdep->fde_nioctls;



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