[svn-commits] mattf: branch mattf/zaptel-1.4-mtp2enhancements r4248 - /team/mattf/zaptel-1....
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri May 9 20:06:21 CDT 2008
Author: mattf
Date: Fri May 9 20:06:21 2008
New Revision: 4248
URL: http://svn.digium.com/view/zaptel?view=rev&rev=4248
Log:
Make sure we clean our buffers after allocation in case we get an old one
Modified:
team/mattf/zaptel-1.4-mtp2enhancements/kernel/zaptel-base.c
Modified: team/mattf/zaptel-1.4-mtp2enhancements/kernel/zaptel-base.c
URL: http://svn.digium.com/view/zaptel/team/mattf/zaptel-1.4-mtp2enhancements/kernel/zaptel-base.c?view=diff&rev=4248&r1=4247&r2=4248
==============================================================================
--- team/mattf/zaptel-1.4-mtp2enhancements/kernel/zaptel-base.c (original)
+++ team/mattf/zaptel-1.4-mtp2enhancements/kernel/zaptel-base.c Fri May 9 20:06:21 2008
@@ -825,6 +825,7 @@
newbuf = kmalloc(j * 2 * numbufs, GFP_KERNEL);
if (!newbuf)
return (-ENOMEM);
+ memset(newbuf, 0, j * 2 * numbufs);
} else
newbuf = NULL;
/* Now that we've allocated our new buffer, we can safely
More information about the svn-commits
mailing list