HomeFreeBSD

Fix refcount leaks in the SGX Linux compat ioctl handler.

Description

Fix refcount leaks in the SGX Linux compat ioctl handler.

Some argument validation error paths would return without releasing the
file reference obtained at the beginning of the function.

While here, fix some style bugs and remove trivial debug prints.

Reviewed by: kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D19214

Details

Provenance
markjAuthored on
Reviewer
kib
Differential Revision
D19214: Fix refcount leak in SGX Linux compat ioctl handlers.
Parents
rS344231: Remove a redundant flag variable.
Branches
Unknown
Tags
Unknown