Driver disappearing during dev_io() is not a fatal error.

This commit is contained in:
Ben Gras 2006-03-15 21:55:32 +00:00
parent 84ba9dd4d3
commit 6e7ba75acb

View file

@ -160,8 +160,10 @@ int flags; /* special flags, like O_NONBLOCK */
/* Call the task. */ /* Call the task. */
(*dp->dmap_io)(dp->dmap_driver, &dev_mess); (*dp->dmap_io)(dp->dmap_driver, &dev_mess);
if(dp->dmap_driver == NONE) if(dp->dmap_driver == NONE) {
panic(__FILE__,"dev_io: driver changed to NONE", NO_NUM); /* Driver has vanished. */
return EIO;
}
/* Task has completed. See if call completed. */ /* Task has completed. See if call completed. */
if (dev_mess.REP_STATUS == SUSPEND) { if (dev_mess.REP_STATUS == SUSPEND) {