avoid crashing because of unpinned mmemory when doing event handling
static void
AfsWaitHack(struct trb *trb)
{
+#if 0
+/* this gets called at interrupt context; let's not tempt fate... */
AFS_STATCNT(WaitHack);
+#endif
e_clear_wait(trb->func_data, THREAD_TIMED_OUT);
}
evp = evp->next;
}
if (!newp) {
- newp = (afs_event_t *) osi_AllocSmallSpace(sizeof(afs_event_t));
+ newp = (afs_event_t *) xmalloc(sizeof(afs_event_t), 5, pinned_heap);
afs_evhashcnt++;
newp->next = afs_evhasht[hashcode];
afs_evhasht[hashcode] = newp;