Don't use vn_todev().

This commit is contained in:
Poul-Henning Kamp 2004-11-10 07:16:59 +00:00
parent 40ce27cb57
commit 38bb5ccdfd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137505

View File

@ -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) {