diff options
author | qwell <qwell@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-08-22 21:02:15 +0000 |
---|---|---|
committer | qwell <qwell@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-08-22 21:02:15 +0000 |
commit | 88db0431977f2e7ca8aec8462f51014005bb0ac0 (patch) | |
tree | ec0a469ec7ebb44e15695f36fbecbbc554aab4ac /zaptel-base.c | |
parent | c6833713d75549c193f23378f135aa16149dcbda (diff) |
Merged revisions 2936 via svnmerge from
https://origsvn.digium.com/svn/zaptel/branches/1.2
........
r2936 | qwell | 2007-08-22 16:01:14 -0500 (Wed, 22 Aug 2007) | 6 lines
Don't try to create devices 250 and above in udev.
Closes issue 10522, fix found by me (but I'm not going to take
credit for the code, since it already existed in trunk
for some reason)
........
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2937 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'zaptel-base.c')
-rw-r--r-- | zaptel-base.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/zaptel-base.c b/zaptel-base.c index 64763c5..bf8c2ba 100644 --- a/zaptel-base.c +++ b/zaptel-base.c @@ -4724,8 +4724,10 @@ int zt_register(struct zt_span *span, int prefmaster) #ifdef CONFIG_ZAP_UDEV for (x = 0; x < span->channels; x++) { char chan_name[50]; - sprintf(chan_name, "zap%d", span->chans[x].channo); - CLASS_DEV_CREATE(zap_class, MKDEV(ZT_MAJOR, span->chans[x].channo), NULL, chan_name); + if (span->chans[x].channo < 250) { + sprintf(chan_name, "zap%d", span->chans[x].channo); + CLASS_DEV_CREATE(zap_class, MKDEV(ZT_MAJOR, span->chans[x].channo), NULL, chan_name); + } } #endif /* CONFIG_ZAP_UDEV */ |