vfs: correctly predict last fdrop on failed open
Arguably since the count is guaranteed to be 1 the code should be modified to avoid the work.
This commit is contained in:
parent
203affb291
commit
d48c2b8d29
@ -1229,7 +1229,7 @@ success:
|
||||
return (0);
|
||||
bad:
|
||||
KASSERT(indx == -1, ("indx=%d, should be -1", indx));
|
||||
fdrop(fp, td);
|
||||
fdrop_close(fp, td);
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user