]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix refcount leaks in the SGX Linux compat ioctl handler.
authormarkj <markj@FreeBSD.org>
Sun, 17 Feb 2019 16:43:44 +0000 (16:43 +0000)
committermarkj <markj@FreeBSD.org>
Sun, 17 Feb 2019 16:43:44 +0000 (16:43 +0000)
commit9a26ede14d71071d3e47cde0111c0fc77fecbdf3
treea096ab4801e085576b42dd829131272bd2f7a7ff
parent88d649090e7eaf4f999d436af83c70b11819c267
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
sys/amd64/sgx/sgx_linux.c