mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-22 17:54:52 +00:00
Silence harmless "smbfs_closel: Negative opencount" messages at
unmount time. Thanks to iedowse for the background information. Submitted by: bp
This commit is contained in:
parent
1bbfa941ef
commit
5bd80fc519
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=88263
|
@ -249,7 +249,7 @@ smbfs_closel(struct vop_close_args *ap)
|
|||
|
||||
smb_makescred(&scred, td, ap->a_cred);
|
||||
|
||||
if (np->n_opencount == 0) {
|
||||
if (np->n_opencount == 0 && vp->v_type != VDIR) {
|
||||
SMBERROR("Negative opencount\n");
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue