summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wcfxo.c
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2009-06-18 18:03:26 +0000
committerShaun Ruffell <sruffell@digium.com>2009-06-18 18:03:26 +0000
commitbd19b79cb1efd0be7a3244557d5cbe647f9d5252 (patch)
treee6356bc17b8c3cb3a844c3384ed6033537e5e864 /drivers/dahdi/wcfxo.c
parentd17cc116cd49cbff2659bbd631f56eec4ae5bffd (diff)
wctdm, wctdm24xxp, wcfxo: Fix calls to dahdi_hooksig.
When JAPAN, AUDIO_RINGCHECK, or ZERO_BATT_RING compile time options are selected it is possible to get a kernel panic due to an invalid pointer passed to the dahdi_hooksig function. (closes issue #15350) Patch by: alecdavis git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6692 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wcfxo.c')
-rw-r--r--drivers/dahdi/wcfxo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dahdi/wcfxo.c b/drivers/dahdi/wcfxo.c
index de956af..7f8a210 100644
--- a/drivers/dahdi/wcfxo.c
+++ b/drivers/dahdi/wcfxo.c
@@ -488,7 +488,7 @@ DAHDI_IRQ_HANDLER(wcfxo_interrupt)
wc->battery = 0;
#ifdef JAPAN
if ((!wc->ohdebounce) && wc->offhook) {
- dahdi_hooksig(&wc->chan, DAHDI_RXSIG_ONHOOK);
+ dahdi_hooksig(wc->chan, DAHDI_RXSIG_ONHOOK);
if (debug)
printk(KERN_DEBUG "Signalled On Hook\n");
#ifdef ZERO_BATT_RING
@@ -516,7 +516,7 @@ DAHDI_IRQ_HANDLER(wcfxo_interrupt)
#ifdef ZERO_BATT_RING
if (wc->onhook) {
wc->onhook = 0;
- dahdi_hooksig(&wc->chan, DAHDI_RXSIG_OFFHOOK);
+ dahdi_hooksig(wc->chan, DAHDI_RXSIG_OFFHOOK);
if (debug)
printk(KERN_DEBUG "Signalled Off Hook\n");
}