summaryrefslogtreecommitdiffstats
path: root/sys/cam/cam_periph.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-04-06 22:21:03 +0000
committeralc <alc@FreeBSD.org>2003-04-06 22:21:03 +0000
commit32862f82ea93f1c7f99b1d617f0fb03f5f9d93c1 (patch)
tree37a0d75c3c01a05a3b86735d4caec6ea669691e7 /sys/cam/cam_periph.c
parenta3dc544bfe477e789002017345b81e493484784f (diff)
downloadFreeBSD-src-32862f82ea93f1c7f99b1d617f0fb03f5f9d93c1.zip
FreeBSD-src-32862f82ea93f1c7f99b1d617f0fb03f5f9d93c1.tar.gz
Sufficient access checks are performed by vmapbuf() that calling useracc()
is pointless. Remove the calls to useracc().
Diffstat (limited to 'sys/cam/cam_periph.c')
-rw-r--r--sys/cam/cam_periph.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c
index 09126e6..d22de04 100644
--- a/sys/cam/cam_periph.c
+++ b/sys/cam/cam_periph.c
@@ -605,29 +605,10 @@ cam_periph_mapmem(union ccb *ccb, struct cam_periph_map_info *mapinfo)
if (dirs[i] & CAM_DIR_OUT) {
flags[i] = BIO_WRITE;
- if (!useracc(*data_ptrs[i], lengths[i],
- VM_PROT_READ)) {
- printf("cam_periph_mapmem: error, "
- "address %p, length %lu isn't "
- "user accessible for READ\n",
- (void *)*data_ptrs[i],
- (u_long)lengths[i]);
- return(EACCES);
- }
}
if (dirs[i] & CAM_DIR_IN) {
flags[i] = BIO_READ;
- if (!useracc(*data_ptrs[i], lengths[i],
- VM_PROT_WRITE)) {
- printf("cam_periph_mapmem: error, "
- "address %p, length %lu isn't "
- "user accessible for WRITE\n",
- (void *)*data_ptrs[i],
- (u_long)lengths[i]);
-
- return(EACCES);
- }
}
}
OpenPOWER on IntegriCloud