HomeFreeBSD

kvm_close(3): return `error` instead of blindly returning `0`

Description

kvm_close(3): return error instead of blindly returning 0

error is the accumulated error from previous close(2) calls.

This bug has been present since the libcall's import from 4.4BSD
Lite (r1573).

MFC after: 1 week
Noticed by: vangyzen (D10022)
Relnotes: yes
Sponsored by: Dell EMC Isilon

Details

Provenance
ngieAuthored on
Parents
rS315602: MFC r312942:
Branches
Unknown
Tags
Unknown