From 5e5bfa6b9401ebc1fa5446e208cf46c15943c411 Mon Sep 17 00:00:00 2001 From: Tom Keiser Date: Mon, 25 Jun 2007 21:22:49 +0000 Subject: [PATCH] aix53-avoid-wait-crash-20070625 avoid crashing because of unpinned mmemory when doing event handling --- src/afs/AIX/osi_sleep.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/afs/AIX/osi_sleep.c b/src/afs/AIX/osi_sleep.c index 1e4c50b6f..fe4938003 100644 --- a/src/afs/AIX/osi_sleep.c +++ b/src/afs/AIX/osi_sleep.c @@ -26,7 +26,10 @@ static char waitV; 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); } @@ -121,7 +124,7 @@ afs_getevent(char *event) 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; -- 2.39.5