We can now properly return ENODEV in nommap(), so do it.
Remove the now wrong comment which says we can't.
This commit is contained in:
parent
beea48b254
commit
bca0668a92
@ -139,8 +139,7 @@ nommap(dev, offset, paddr, nprot)
|
||||
int nprot;
|
||||
{
|
||||
|
||||
/* Don't return ENODEV. That would allow mapping address ENODEV! */
|
||||
return (-1);
|
||||
return (ENODEV);
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user