[dahdi-commits] sruffell: branch linux/2.6 r10679 - /linux/branches/2.6/drivers/dahdi/wct4xxp/
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Fri Apr 27 15:12:14 CDT 2012
Author: sruffell
Date: Fri Apr 27 15:12:09 2012
New Revision: 10679
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10679
Log:
Assign NULL values to pointers to insure that future kfree calls do not cause errors.
From: Doug Bailey <dbailey at digium.com>
Signed-off-by: Shaun Ruffell <sruffell at digium.com>
Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=10678
Modified:
linux/branches/2.6/drivers/dahdi/wct4xxp/base.c
Modified: linux/branches/2.6/drivers/dahdi/wct4xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/branches/2.6/drivers/dahdi/wct4xxp/base.c?view=diff&rev=10679&r1=10678&r2=10679
==============================================================================
--- linux/branches/2.6/drivers/dahdi/wct4xxp/base.c (original)
+++ linux/branches/2.6/drivers/dahdi/wct4xxp/base.c Fri Apr 27 15:12:09 2012
@@ -2093,6 +2093,8 @@
for (i = 0; i < ARRAY_SIZE(ts->chans); ++i) {
kfree(ts->chans[i]);
kfree(ts->ec[i]);
+ ts->chans[i] = NULL;
+ ts->ec[i] = NULL;
}
ts->linemode = linemode;
More information about the dahdi-commits
mailing list