summaryrefslogtreecommitdiff
path: root/drivers/isdn/mISDN/dsp_core.c
diff options
context:
space:
mode:
authorAndreas Eversberg <andreas@eversberg.eu>2008-12-28 16:31:26 +0100
committerKarsten Keil <kkeil@suse.de>2009-01-09 22:44:29 +0100
commitc6a2e587e5b28177eabfc2db4d5abd25b87604f2 (patch)
tree2d13c714581a4915e3277665a8e0dcd6f500c2ba /drivers/isdn/mISDN/dsp_core.c
parentc3b3cdeba5a671ce5d0064c52c8a85f5b1e72e92 (diff)
downloadlwn-c6a2e587e5b28177eabfc2db4d5abd25b87604f2.tar.gz
lwn-c6a2e587e5b28177eabfc2db4d5abd25b87604f2.zip
mISDN: Fix kernel crash when doing hardware conference with more than two members
Fix kernel crash when doing hardware conference with more than two members. Removed DTMF threshold notice when debugging is disabled. Signed-off-by: Andreas Eversberg <andreas@eversberg.eu> Signed-off-by: Karsten Keil <kkeil@suse.de>
Diffstat (limited to 'drivers/isdn/mISDN/dsp_core.c')
-rw-r--r--drivers/isdn/mISDN/dsp_core.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/isdn/mISDN/dsp_core.c b/drivers/isdn/mISDN/dsp_core.c
index 7e60cb94b5c0..3083338716b2 100644
--- a/drivers/isdn/mISDN/dsp_core.c
+++ b/drivers/isdn/mISDN/dsp_core.c
@@ -301,8 +301,9 @@ dsp_control_req(struct dsp *dsp, struct mISDNhead *hh, struct sk_buff *skb)
if (dsp_debug & DEBUG_DSP_CORE)
printk(KERN_DEBUG "%s: start dtmf\n", __func__);
if (len == sizeof(int)) {
- printk(KERN_NOTICE "changing DTMF Threshold "
- "to %d\n", *((int *)data));
+ if (dsp_debug & DEBUG_DSP_CORE)
+ printk(KERN_NOTICE "changing DTMF Threshold "
+ "to %d\n", *((int *)data));
dsp->dtmf.treshold = (*(int *)data) * 10000;
}
/* init goertzel */