Do not use devsw() but si_devsw direction. This is still bogus but a
fair bit less so.
This commit is contained in:
parent
99b0ffd3c0
commit
a4f5e76f74
@ -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…
x
Reference in New Issue
Block a user