Driver disappearing during dev_io() is not a fatal error.
This commit is contained in:
parent
84ba9dd4d3
commit
6e7ba75acb
|
@ -160,8 +160,10 @@ int flags; /* special flags, like O_NONBLOCK */
|
|||
/* Call the task. */
|
||||
(*dp->dmap_io)(dp->dmap_driver, &dev_mess);
|
||||
|
||||
if(dp->dmap_driver == NONE)
|
||||
panic(__FILE__,"dev_io: driver changed to NONE", NO_NUM);
|
||||
if(dp->dmap_driver == NONE) {
|
||||
/* Driver has vanished. */
|
||||
return EIO;
|
||||
}
|
||||
|
||||
/* Task has completed. See if call completed. */
|
||||
if (dev_mess.REP_STATUS == SUSPEND) {
|
||||
|
|
Loading…
Reference in a new issue