MFC r276522:
Actually remove GIANT_REQUIRED, declared but not done in r263475. Style.
This commit is contained in:
parent
7e00152384
commit
b085354527
@ -81,8 +81,6 @@ memrw(struct cdev *dev, struct uio *uio, int flags)
|
|||||||
int error, o, sflags;
|
int error, o, sflags;
|
||||||
vm_offset_t addr, eaddr;
|
vm_offset_t addr, eaddr;
|
||||||
|
|
||||||
GIANT_REQUIRED;
|
|
||||||
|
|
||||||
error = 0;
|
error = 0;
|
||||||
c = 0;
|
c = 0;
|
||||||
sflags = curthread_pflags_set(TDP_DEVMEMIO);
|
sflags = curthread_pflags_set(TDP_DEVMEMIO);
|
||||||
@ -110,8 +108,7 @@ memrw(struct cdev *dev, struct uio *uio, int flags)
|
|||||||
}
|
}
|
||||||
error = uiomove((void *)v, (int)c, uio);
|
error = uiomove((void *)v, (int)c, uio);
|
||||||
continue;
|
continue;
|
||||||
}
|
} else if (dev2unit(dev) == CDEV_MINOR_KMEM) {
|
||||||
else if (dev2unit(dev) == CDEV_MINOR_KMEM) {
|
|
||||||
v = uio->uio_offset;
|
v = uio->uio_offset;
|
||||||
|
|
||||||
if (v >= DMAP_MIN_ADDRESS && v < DMAP_MAX_ADDRESS) {
|
if (v >= DMAP_MIN_ADDRESS && v < DMAP_MAX_ADDRESS) {
|
||||||
|
Loading…
Reference in New Issue
Block a user