mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-12 09:58:36 +00:00
Fix 2nd arg to udev2dev().
This commit is contained in:
parent
00002ecad4
commit
c7119ea7dd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48863
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
|
||||
* $Id: vfs_subr.c,v 1.208 1999/07/12 15:02:50 kris Exp $
|
||||
* $Id: vfs_subr.c,v 1.209 1999/07/17 18:43:45 phk Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1275,7 +1275,7 @@ checkalias(nvp, nvp_rdev, mp)
|
||||
if (nvp->v_type != VBLK && nvp->v_type != VCHR)
|
||||
return (NULLVP);
|
||||
|
||||
dev = udev2dev(nvp_rdev, 2);
|
||||
dev = udev2dev(nvp_rdev, nvp->v_type == VBLK ? 1 : 0);
|
||||
|
||||
vpp = &speclisth[SPECHASH(dev)];
|
||||
loop:
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
|
||||
* $Id: vfs_subr.c,v 1.208 1999/07/12 15:02:50 kris Exp $
|
||||
* $Id: vfs_subr.c,v 1.209 1999/07/17 18:43:45 phk Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1275,7 +1275,7 @@ checkalias(nvp, nvp_rdev, mp)
|
||||
if (nvp->v_type != VBLK && nvp->v_type != VCHR)
|
||||
return (NULLVP);
|
||||
|
||||
dev = udev2dev(nvp_rdev, 2);
|
||||
dev = udev2dev(nvp_rdev, nvp->v_type == VBLK ? 1 : 0);
|
||||
|
||||
vpp = &speclisth[SPECHASH(dev)];
|
||||
loop:
|
||||
|
Loading…
Reference in New Issue
Block a user