aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/isdnloop/isdnloop.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isdn/isdnloop/isdnloop.c')
-rw-r--r--drivers/isdn/isdnloop/isdnloop.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/isdn/isdnloop/isdnloop.c b/drivers/isdn/isdnloop/isdnloop.c
index 02125e6a9109..e1f8748ff25d 100644
--- a/drivers/isdn/isdnloop/isdnloop.c
+++ b/drivers/isdn/isdnloop/isdnloop.c
@@ -1070,6 +1070,12 @@ isdnloop_start(isdnloop_card *card, isdnloop_sdef *sdefp)
1070 return -EBUSY; 1070 return -EBUSY;
1071 if (copy_from_user((char *) &sdef, (char *) sdefp, sizeof(sdef))) 1071 if (copy_from_user((char *) &sdef, (char *) sdefp, sizeof(sdef)))
1072 return -EFAULT; 1072 return -EFAULT;
1073
1074 for (i = 0; i < 3; i++) {
1075 if (!memchr(sdef.num[i], 0, sizeof(sdef.num[i])))
1076 return -EINVAL;
1077 }
1078
1073 spin_lock_irqsave(&card->isdnloop_lock, flags); 1079 spin_lock_irqsave(&card->isdnloop_lock, flags);
1074 switch (sdef.ptype) { 1080 switch (sdef.ptype) {
1075 case ISDN_PTYPE_EURO: 1081 case ISDN_PTYPE_EURO: