summaryrefslogtreecommitdiffstats
path: root/sys/pci/meteor.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/meteor.c')
-rw-r--r--sys/pci/meteor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/pci/meteor.c b/sys/pci/meteor.c
index 670945a..62666cc 100644
--- a/sys/pci/meteor.c
+++ b/sys/pci/meteor.c
@@ -1392,6 +1392,8 @@ meteor_ioctl(dev_t dev, u_long cmd, caddr_t arg, int flag, struct thread *td)
*(u_short *)arg = mtr->fps;
break;
case METEORSSIGNAL:
+ if (*(int *)arg < 0 || *(int *)arg > _SIG_MAXSIG)
+ return EINVAL;
mtr->signal = *(int *) arg;
if (mtr->signal) {
mtr->proc = td->td_proc;
OpenPOWER on IntegriCloud