[svn-commits] kpfleming: linux/trunk r4641 - /linux/trunk/drivers/dahdi/dahdi-base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Jul 31 11:21:27 CDT 2008


Author: kpfleming
Date: Thu Jul 31 11:21:27 2008
New Revision: 4641

URL: http://svn.digium.com/view/dahdi?view=rev&rev=4641
Log:
would help if we didn't copy a NULL pointer and then try to dereference it...

Modified:
    linux/trunk/drivers/dahdi/dahdi-base.c

Modified: linux/trunk/drivers/dahdi/dahdi-base.c
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/dahdi-base.c?view=diff&rev=4641&r1=4640&r2=4641
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi-base.c (original)
+++ linux/trunk/drivers/dahdi/dahdi-base.c Thu Jul 31 11:21:27 2008
@@ -4709,7 +4709,7 @@
 
 		/* 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);




More information about the svn-commits mailing list