catch up NetBSD kern/41048.
catch up NetBSD kern/41048.

check for a non-NULL configuration descriptor before dereferencing.

ok deraadt@

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