summaryrefslogtreecommitdiff
path: root/drivers/dahdi/tor2.c
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-07-19 15:45:40 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-07-19 15:45:40 +0000
commita634115f5944969d0e13c1ffc9c31ee9366a8d18 (patch)
treeb02f250d4bff90378bf00a5844c8b2afa2350ff7 /drivers/dahdi/tor2.c
parent9795ca6ec9ce1144c29bcd257332d868bb6bc903 (diff)
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) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6852 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/tor2.c')
-rw-r--r--drivers/dahdi/tor2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dahdi/tor2.c b/drivers/dahdi/tor2.c
index 0be1793..3cde7ec 100644
--- a/drivers/dahdi/tor2.c
+++ b/drivers/dahdi/tor2.c
@@ -200,7 +200,7 @@ static int tor2_spanconfig(struct dahdi_span *span, struct dahdi_lineconfig *lc)
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;