Not having a driver isn't a print-worthy error. Just return ENXIO.
This commit is contained in:
parent
4102c1b44c
commit
966905d295
@ -50,8 +50,7 @@ int flags; /* mode bits and flags */
|
|||||||
if (major >= NR_DEVICES) major = 0;
|
if (major >= NR_DEVICES) major = 0;
|
||||||
dp = &dmap[major];
|
dp = &dmap[major];
|
||||||
if (dp->dmap_driver == NONE) {
|
if (dp->dmap_driver == NONE) {
|
||||||
printf("FS: open: no driver for dev %x\n", dev);
|
return ENXIO;
|
||||||
return EIO;
|
|
||||||
}
|
}
|
||||||
r = (*dp->dmap_opcl)(DEV_OPEN, dev, proc, flags);
|
r = (*dp->dmap_opcl)(DEV_OPEN, dev, proc, flags);
|
||||||
if (r == SUSPEND) panic(__FILE__,"suspend on open from", dp->dmap_driver);
|
if (r == SUSPEND) panic(__FILE__,"suspend on open from", dp->dmap_driver);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user