Check for invalid dev indices, which could get here through ioctl.
Check for invalid dev indices, which could get here through ioctl.

orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars