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;
|
int nprot;
|
||||||
{
|
{
|
||||||
|
|
||||||
/* Don't return ENODEV. That would allow mapping address ENODEV! */
|
return (ENODEV);
|
||||||
return (-1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Loading…
x
Reference in New Issue
Block a user