Fix broken assertion in r329520.

Reported by:	pho@ lwhsu@
This commit is contained in:
Mariusz Zaborski 2018-02-18 20:04:39 +00:00
parent c5fe9c7b20
commit 965cd21173
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329528

View File

@ -352,7 +352,7 @@ cap_ioctl_check(struct filedesc *fdp, int fd, u_long cmd)
("%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;