summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/an/if_an.c3
-rw-r--r--sys/dev/wi/if_wi.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/an/if_an.c b/sys/dev/an/if_an.c
index cada570..3dccf07 100644
--- a/sys/dev/an/if_an.c
+++ b/sys/dev/an/if_an.c
@@ -1328,6 +1328,9 @@ an_ioctl(ifp, command, data)
break;
#ifdef ANCACHE
if (sc->areq.an_type == AN_RID_ZERO_CACHE) {
+ error = suser(td);
+ if (error)
+ break;
sc->an_sigitems = sc->an_nextitem = 0;
break;
} else if (sc->areq.an_type == AN_RID_READ_CACHE) {
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c
index 2ed6cc2..7340a1c 100644
--- a/sys/dev/wi/if_wi.c
+++ b/sys/dev/wi/if_wi.c
@@ -1736,6 +1736,9 @@ wi_ioctl(ifp, command, data)
}
#ifdef WICACHE
else if (wreq.wi_type == WI_RID_ZERO_CACHE) {
+ error = suser(td);
+ if (error)
+ break;
sc->wi_sigitems = sc->wi_nextitem = 0;
} else if (wreq.wi_type == WI_RID_READ_CACHE) {
char *pt = (char *)&wreq.wi_val;
OpenPOWER on IntegriCloud