Previous commit was intented to silence a warning, not to change codepath.
This commit is contained in:
parent
f2d0f4274b
commit
d9d8c8172d
@ -249,8 +249,9 @@ smbfs_closel(struct vop_close_args *ap)
|
||||
|
||||
smb_makescred(&scred, td, ap->a_cred);
|
||||
|
||||
if (np->n_opencount == 0 && vp->v_type != VDIR) {
|
||||
SMBERROR("Negative opencount\n");
|
||||
if (np->n_opencount == 0) {
|
||||
if (vp->v_type != VDIR)
|
||||
SMBERROR("Negative opencount\n");
|
||||
return 0;
|
||||
}
|
||||
np->n_opencount--;
|
||||
|
Loading…
x
Reference in New Issue
Block a user