diff options
Diffstat (limited to 'zaptel.c')
-rwxr-xr-x | zaptel.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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) { |