mirror of
https://github.com/opnsense/src.git
synced 2026-06-12 18:20:49 -04:00
fd: annotate finstall with prediction branches
This commit is contained in:
parent
c1b57fa7d3
commit
6ed30ea4c0
1 changed files with 2 additions and 1 deletions
|
|
@ -1978,7 +1978,8 @@ finstall(struct thread *td, struct file *fp, int *fd, int flags,
|
|||
if (!fhold(fp))
|
||||
return (EBADF);
|
||||
FILEDESC_XLOCK(fdp);
|
||||
if ((error = fdalloc(td, 0, fd))) {
|
||||
error = fdalloc(td, 0, fd);
|
||||
if (__predict_false(error != 0)) {
|
||||
FILEDESC_XUNLOCK(fdp);
|
||||
fdrop(fp, td);
|
||||
return (error);
|
||||
|
|
|
|||
Loading…
Reference in a new issue