Fix broken assertion in r329520.

Reported by:	pho@ lwhsu@
This commit is contained in:
oshogbo 2018-02-18 20:04:39 +00:00
parent 123fced6e5
commit e41b3243d5

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;