HomeFreeBSD

Fix panic triggered by code like this:

Description

Fix panic triggered by code like this:

open("/dev/md0", O_EXEC);

Discussed with: kib@, mav@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3051

Details