[dahdi-commits] tzafrir: linux/trunk r10327 - /linux/trunk/drivers/dahdi/dahdi-base.c

SVN commits to the DAHDI project dahdi-commits at lists.digium.com
Mon Nov 7 11:34:26 CST 2011


Author: tzafrir
Date: Mon Nov  7 11:33:25 2011
New Revision: 10327

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10327
Log:
bugfix: off-by-one in span assignment

The test in _check_spanno_and_basechan() was off by one
(used '<' instead of '<=')

Signed-off-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
Acked-by: Shaun Ruffell <sruffell at digium.com>

Modified:
    linux/trunk/drivers/dahdi/dahdi-base.c

Modified: linux/trunk/drivers/dahdi/dahdi-base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/dahdi-base.c?view=diff&rev=10327&r1=10326&r2=10327
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi-base.c (original)
+++ linux/trunk/drivers/dahdi/dahdi-base.c Mon Nov  7 11:33:25 2011
@@ -6751,7 +6751,7 @@
 		if (next_channo == -1)
 			break;
 
-		if ((basechan + span->channels) < next_channo)
+		if ((basechan + span->channels) <= next_channo)
 			break;
 
 		/* Cannot fit the span into the requested location. Abort. */




More information about the dahdi-commits mailing list