aboutsummaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2021-07-20 10:23:11 +0000
committerKyle Evans <kevans@FreeBSD.org>2021-07-21 15:18:09 +0000
commit23ecfa9d5bc4f04eb58e26018c2d15f032d5d742 (patch)
treed513ca7da3975c3e1a2e1f98a4f608f230ea8ef7 /lib/libc
parentfa46a46a82498532f547be5f6b5a94d05f53b0be (diff)
downloadsrc-23ecfa9d5bc4f04eb58e26018c2d15f032d5d742.tar.gz
src-23ecfa9d5bc4f04eb58e26018c2d15f032d5d742.zip
kern: mountroot: avoid fd leak in .md parsing
parse_dir_md() opens /dev/mdctl but only closes the resulting fd on success, not upon failure of the ioctl or when we exceed the md unit max. Reviewed by: kib (slightly previous version) Sponsored by: NetApp, Inc. Sponsored by: Klara, Inc. X-NetApp-PR: #62 Differential Revision: https://reviews.freebsd.org/D31229
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions