[dahdi-commits] tzafrir: linux/trunk r6852 -	/linux/trunk/drivers/dahdi/tor2.c
    SVN commits to the DAHDI project 
    dahdi-commits at lists.digium.com
       
    Sun Jul 19 10:45:46 CDT 2009
    
    
  
Author: tzafrir
Date: Sun Jul 19 10:45:40 2009
New Revision: 6852
URL: http://svn.asterisk.org/svn-view/dahdi?view=rev&rev=6852
Log:
tor2: allow using port4 as timing source
Fix a silly regression introduced when strict check on the timing
parameter was added (sync-1 is the array index, not sync itself. And 0
is a special case).
(closes issue #15408)
Reported by: dferrer
Patches:
      tor2-4th_sync.patch uploaded by dferrer (license 525)
Modified:
    linux/trunk/drivers/dahdi/tor2.c
Modified: linux/trunk/drivers/dahdi/tor2.c
URL: http://svn.asterisk.org/svn-view/dahdi/linux/trunk/drivers/dahdi/tor2.c?view=diff&rev=6852&r1=6851&r2=6852
==============================================================================
--- linux/trunk/drivers/dahdi/tor2.c (original)
+++ linux/trunk/drivers/dahdi/tor2.c Sun Jul 19 10:45:40 2009
@@ -200,7 +200,7 @@
 	if (debug)
 		printk(KERN_INFO "Tor2: Configuring span %d\n", span->spanno);
 
-	if ((lc->sync < 0) || (lc->sync >= SPANS_PER_CARD)) {
+	if ((lc->sync < 0) || (lc->sync > SPANS_PER_CARD)) {
 		printk(KERN_WARNING "%s %d: invalid span timing value %d.\n",
 				THIS_MODULE->name, span->spanno, lc->sync);
 		return -EINVAL;
    
    
More information about the dahdi-commits
mailing list