[svn-commits] tzafrir: linux/trunk r5590 - /linux/trunk/drivers/dahdi/tor2.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri Dec 19 06:39:31 CST 2008
Author: tzafrir
Date: Fri Dec 19 06:39:31 2008
New Revision: 5590
URL: http://svn.digium.com/view/dahdi?view=rev&rev=5590
Log:
Fix the safety check in tor2 to be for SPANS_PER_CARD
Thanks to Eugene Teo, in a from issue #13954 .
Modified:
linux/trunk/drivers/dahdi/tor2.c
Modified: linux/trunk/drivers/dahdi/tor2.c
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/tor2.c?view=diff&rev=5590&r1=5589&r2=5590
==============================================================================
--- linux/trunk/drivers/dahdi/tor2.c (original)
+++ linux/trunk/drivers/dahdi/tor2.c Fri Dec 19 06:39:31 2008
@@ -200,7 +200,7 @@
if (debug)
printk(KERN_INFO "Tor2: Configuring span %d\n", span->spanno);
- if ((lc->sync < 0) || (lc->sync >= MAX_TOR_CARDS)) {
+ 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 svn-commits
mailing list