mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-28 16:43:09 +00:00
Don't use vn_todev().
This commit is contained in:
parent
40ce27cb57
commit
38bb5ccdfd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137505
@ -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 New Issue
Block a user