summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2008-07-31 16:21:27 +0000
committerKevin P. Fleming <kpfleming@digium.com>2008-07-31 16:21:27 +0000
commit1e0d949727d2fe9dc184157b111b7ded72977b00 (patch)
tree445e8a7ddc4fa08a8a51a2273f4340410de5f527 /drivers
parent99848715e93530c6c801422ef36efe9cd86910f4 (diff)
would help if we didn't copy a NULL pointer and then try to dereference it...
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4641 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers')
-rw-r--r--drivers/dahdi/dahdi-base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c
index f2a1482..31ed4af 100644
--- a/drivers/dahdi/dahdi-base.c
+++ b/drivers/dahdi/dahdi-base.c
@@ -4709,7 +4709,7 @@ static int ioctl_echocancel(struct dahdi_chan *chan, struct dahdi_echocanparams
/* got the reference, copy the pointer and use it for making
an echo canceler instance if possible */
- ec_current = chan->ec_current;
+ ec_current = chan->ec_factory;
if ((ret = ec_current->echo_can_create(ecp, params, &ec))) {
release_echocan(ec_current);