[zaptel-commits] qwell: branch 1.2 r2936 - /branches/1.2/zaptel-base.c

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Wed Aug 22 16:01:15 CDT 2007


Author: qwell
Date: Wed Aug 22 16:01:14 2007
New Revision: 2936

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2936
Log:
Don't try to create devices 250 and above in udev.

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)

Modified:
    branches/1.2/zaptel-base.c

Modified: branches/1.2/zaptel-base.c
URL: http://svn.digium.com/view/zaptel/branches/1.2/zaptel-base.c?view=diff&rev=2936&r1=2935&r2=2936
==============================================================================
--- branches/1.2/zaptel-base.c (original)
+++ branches/1.2/zaptel-base.c Wed Aug 22 16:01:14 2007
@@ -4595,8 +4595,10 @@
 #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 */
 




More information about the zaptel-commits mailing list