diff options
author | jonathan <jonathan@FreeBSD.org> | 2011-08-11 13:29:59 +0000 |
---|---|---|
committer | jonathan <jonathan@FreeBSD.org> | 2011-08-11 13:29:59 +0000 |
commit | 8cb2c0bf4dc41b622c3489c115dcb8b21990c0cd (patch) | |
tree | 606212c804cba4f1adfc78c83e6377c3fa186822 /tools | |
parent | eb7d495d9db9e8a83ae067ec87e0675be8366adb (diff) | |
download | FreeBSD-src-8cb2c0bf4dc41b622c3489c115dcb8b21990c0cd.zip FreeBSD-src-8cb2c0bf4dc41b622c3489c115dcb8b21990c0cd.tar.gz |
Only call fdclose() on successfully-opened FDs.
Since kern_openat() now uses falloc_noinstall() and finstall() separately,
there are cases where we could get to cleanup code without ever creating
a file descriptor. In those cases, we should not call fdclose() on FD -1.
Approved by: re (kib), mentor (rwatson)
Sponsored by: Google Inc
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions