From 1e0d949727d2fe9dc184157b111b7ded72977b00 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Thu, 31 Jul 2008 16:21:27 +0000 Subject: 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 --- drivers/dahdi/dahdi-base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers') 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); -- cgit v1.2.3