HomeFreeBSD

nv_malloc can fail in userland.

Description

nv_malloc can fail in userland.
Add check to prevent a NULL pointer dereference.

Pointed out by: mjg
Approved by: pjd (mentor)

Details

Provenance
oshogboAuthored on
Parents
rS282349: Remove duplicated code using macro template for the nvlist_add_.* functions.
Branches
Unknown
Tags
Unknown