[svn-commits] dbailey: branch 1.4 r4022 - /branches/1.4/kernel/wctdm24xxp/base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Mar 19 11:02:18 CDT 2008


Author: dbailey
Date: Wed Mar 19 11:02:17 2008
New Revision: 4022

URL: http://svn.digium.com/view/zaptel?view=rev&rev=4022
Log:
Properly handle return value before testing parameter
(Parameter may be uninitialized) 

Modified:
    branches/1.4/kernel/wctdm24xxp/base.c

Modified: branches/1.4/kernel/wctdm24xxp/base.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/kernel/wctdm24xxp/base.c?view=diff&rev=4022&r1=4021&r2=4022
==============================================================================
--- branches/1.4/kernel/wctdm24xxp/base.c (original)
+++ branches/1.4/kernel/wctdm24xxp/base.c Wed Mar 19 11:02:17 2008
@@ -3432,7 +3432,11 @@
 				printk("ReadEventFIFOMessage took %d ms\n", wc->intcount - start);
 
 			if (res == RefInvalidEvent || res == RefDspCommFailure) {
-				printk("Uh oh (%d)\n", res);
+				printk("VPM Comm Error\n", res);
+				continue;
+			}
+
+			if (res == RefNoEventAvail) {
 				continue;
 			}
 




More information about the svn-commits mailing list