summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/dahdi/wct4xxp/base.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/dahdi/wct4xxp/base.c b/drivers/dahdi/wct4xxp/base.c
index f49a879..d2a07ca 100644
--- a/drivers/dahdi/wct4xxp/base.c
+++ b/drivers/dahdi/wct4xxp/base.c
@@ -4272,6 +4272,11 @@ static int __devinit t4_init_one(struct pci_dev *pdev, const struct pci_device_i
else
init_latency = 2;
}
+
+ if (max_latency < init_latency) {
+ printk(KERN_INFO "maxlatency must be set to something greater than %d ms, increasing it to %d\n", init_latency, init_latency);
+ max_latency = init_latency;
+ }
if (t4_allocate_buffers(wc, init_latency, NULL, NULL)) {
return -ENOMEM;