[svn-commits] sruffell: linux/trunk r6776 - /linux/trunk/drivers/dahdi/voicebus/GpakCust.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jun 26 16:24:38 CDT 2009


Author: sruffell
Date: Fri Jun 26 16:24:34 2009
New Revision: 6776

URL: http://svn.asterisk.org/svn-view/dahdi?view=rev&rev=6776
Log:
voicebus: Limit the string length of the vpm workqueue name.

On older kernels, it is possible to cause a kernel panic if the lenght of the
workqueue name is greater than 10. DAHDI-276.

Modified:
    linux/trunk/drivers/dahdi/voicebus/GpakCust.c

Modified: linux/trunk/drivers/dahdi/voicebus/GpakCust.c
URL: http://svn.asterisk.org/svn-view/dahdi/linux/trunk/drivers/dahdi/voicebus/GpakCust.c?view=diff&rev=6776&r1=6775&r2=6776
==============================================================================
--- linux/trunk/drivers/dahdi/voicebus/GpakCust.c (original)
+++ linux/trunk/drivers/dahdi/voicebus/GpakCust.c Fri Jun 26 16:24:34 2009
@@ -403,8 +403,13 @@
 	if (!vpm)
 		return NULL;
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 18)
+	/* There is a limit on the length of the name of the workqueue. */
+	strcpy(vpm->wq_name, "vpmadt032");
+#else
 	strcpy(vpm->wq_name, board_name);
 	strcat(vpm->wq_name, suffix);
+#endif
 
 	/* Init our vpmadt032 struct */
 	memcpy(&vpm->options, options, sizeof(*options));




More information about the svn-commits mailing list