HomeFreeBSD

MFC r341844:

Description

MFC r341844:
Don't register IOCTLs with capsicum when there is no valid file descriptor.
This fixes tcpdump when using mlx5_X devices.

Differential Revision: https://reviews.freebsd.org/D18499
Reviewed by: kib@, slavash@, oshogbo@
Sponsored by: Mellanox Technologies