ref: e9cbce8c9fc55854bb78febcc0f86795b65c8a39
parent: af46e1737f7939365e09124cd15ec07550e5df13
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Fri Nov 11 00:48:48 EST 2011
audiohda: fix null pointer dereference
--- a/sys/src/9/pc/audiohda.c
+++ b/sys/src/9/pc/audiohda.c
@@ -572,7 +572,7 @@
break;
for(i=0; i<w->nlist; i++){v = w->list[i];
- if(v->from)
+ if(v == nil || v->from)
continue;
v->from = w;
q[r++] = v;
--
⑨