Author: dbailey
Date: Wed Mar 19 11:02:17 2008
New Revision: 4022
URL: http://svn.digium.com/view/zaptel?view=rev&rev=4022
a>
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 msn",
wc->intcount - start);
if (res == RefInvalidEvent || res == RefDspCommFailure)
{
- printk("Uh oh (%d)n", res);
+ printk("VPM Comm Errorn", res);
+ continue;
+ }
+
+ if (res == RefNoEventAvail) {
continue;
}
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.c
om--
zaptel-commits mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/zaptel-commits
a>
|