[dahdi-commits] kpfleming: linux/trunk r6294 - /linux/trunk/drivers/dahdi/dahdi-base.c
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Thu Apr 2 12:27:06 CDT 2009
Author: kpfleming
Date: Thu Apr 2 12:27:02 2009
New Revision: 6294
URL: http://svn.digium.com/svn-view/dahdi?view=rev&rev=6294
Log:
ensure that the structure being returned by DAHDI_GET_BUFINFO is completely initialized
Modified:
linux/trunk/drivers/dahdi/dahdi-base.c
Modified: linux/trunk/drivers/dahdi/dahdi-base.c
URL: http://svn.digium.com/svn-view/dahdi/linux/trunk/drivers/dahdi/dahdi-base.c?view=diff&rev=6294&r1=6293&r2=6294
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi-base.c (original)
+++ linux/trunk/drivers/dahdi/dahdi-base.c Thu Apr 2 12:27:02 2009
@@ -4352,6 +4352,7 @@
case DAHDI_DIAL:
return ioctl_dahdi_dial(chan, data);
case DAHDI_GET_BUFINFO:
+ memset(&stack.bi, 0, sizeof(stack.bi));
stack.bi.rxbufpolicy = chan->rxbufpolicy;
stack.bi.txbufpolicy = chan->txbufpolicy;
stack.bi.numbufs = chan->numbufs;
More information about the dahdi-commits
mailing list