HomeFreeBSD

Fix malloc() uses in em_get_regs().

Description

Fix malloc() uses in em_get_regs().

Do not use malloc(M_NOWAIT), wait is possible there, and the malloc
failures where not checked. Do not forget to free malloced memory.

Reported and tested by: pho
Approved by: sbruno
Sponsored by: The FreeBSD Foundation

Details

Provenance
kibAuthored on
Parents
rS323311: Add Fedor Uporov (fsu@) as a src committer.
Branches
Unknown
Tags
Unknown