Skip to content

Commit

Permalink
Fix broken assertion in r329520.
Browse files Browse the repository at this point in the history
Reported by:	pho@ lwhsu@
  • Loading branch information
oshogbo committed Feb 18, 2018
1 parent 123fced commit e41b324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/kern/sys_capability.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e41b324

Please sign in to comment.