summaryrefslogtreecommitdiff
path: root/zaptel.c
diff options
context:
space:
mode:
Diffstat (limited to 'zaptel.c')
-rwxr-xr-xzaptel.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/zaptel.c b/zaptel.c
index c775817..fa988a7 100755
--- a/zaptel.c
+++ b/zaptel.c
@@ -2014,8 +2014,13 @@ static int zt_open(struct inode *inode, struct file *file)
/* Minor 0: Special "control" descriptor */
if (!unit)
return zt_ctl_open(inode, file);
- if (unit == 253)
- return zt_timing_open(inode, file);
+ if (unit == 253) {
+ if (maxspans) {
+ return zt_timing_open(inode, file);
+ } else {
+ return -ENXIO;
+ }
+ }
if (unit == 254)
return zt_chan_open(inode, file);
if (unit == 255) {