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 Sep 8 2017, 2:54 PM
Parents
rG6ff9ce94ce52: Consistently use tabs for indent.
Branches
Unknown
Tags
Unknown

Event Timeline