mirror of
https://github.com/opnsense/src.git
synced 2026-02-13 15:57:05 -05:00
Don't use vn_todev().
This commit is contained in:
parent
40ce27cb57
commit
38bb5ccdfd
1 changed files with 2 additions and 2 deletions
|
|
@ -396,11 +396,11 @@ smb_dev2share(int fd, int mode, struct smb_cred *scred,
|
|||
fdrop(fp, curthread);
|
||||
return EBADF;
|
||||
}
|
||||
dev = vn_todev(vp);
|
||||
if (dev == NULL) {
|
||||
if (vp->v_type != VCHR) {
|
||||
fdrop(fp, curthread);
|
||||
return EBADF;
|
||||
}
|
||||
dev = vp->v_rdev;
|
||||
SMB_CHECKMINOR(dev);
|
||||
ssp = sdp->sd_share;
|
||||
if (ssp == NULL) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue