HomeFreeBSD

Handle kd == NULL gracefully with kvm_close(3)

Description

Handle kd == NULL gracefully with kvm_close(3)

Don't segfault in kvm_close(3) if provided a NULL pointer. Instead, return
-1 and set errno to EINVAL.

Document this new behavior explicitly.

MFC after: 1 week
Reviewed by: vangyzen
Sponsored by: Dell EMC Isilon
Differential Revision: D10065

Details

Provenance
ngieAuthored on
Reviewer
vangyzen
Differential Revision
D10065: Handle kd == NULL gracefully with kvm_close(3)
Parents
rS315646: loader: pxe.h constants have wrong values
Branches
Unknown
Tags
Unknown