mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-05 12:19:30 +00:00
Do not use devsw() but si_devsw direction. This is still bogus but a
fair bit less so.
This commit is contained in:
parent
5a19f8b0c4
commit
d0c90fe668
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135613
@ -152,7 +152,7 @@ coda_omount(vfsp, path, data, td)
|
||||
/*
|
||||
* See if the device table matches our expectations.
|
||||
*/
|
||||
if (devsw(dev)->d_open != vc_nb_open)
|
||||
if (dev->si_devsw->d_open != vc_nb_open)
|
||||
{
|
||||
MARK_INT_FAIL(CODA_MOUNT_STATS);
|
||||
return(ENXIO);
|
||||
|
@ -152,7 +152,7 @@ coda_omount(vfsp, path, data, td)
|
||||
/*
|
||||
* See if the device table matches our expectations.
|
||||
*/
|
||||
if (devsw(dev)->d_open != vc_nb_open)
|
||||
if (dev->si_devsw->d_open != vc_nb_open)
|
||||
{
|
||||
MARK_INT_FAIL(CODA_MOUNT_STATS);
|
||||
return(ENXIO);
|
||||
|
Loading…
Reference in New Issue
Block a user