From: Tom Keiser Date: Mon, 25 Jun 2007 21:22:49 +0000 (+0000) Subject: aix53-avoid-wait-crash-20070625 X-Git-Tag: BP-openafs-windows-kdfs-ifs~639 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=5e5bfa6b9401ebc1fa5446e208cf46c15943c411 aix53-avoid-wait-crash-20070625 avoid crashing because of unpinned mmemory when doing event handling --- diff --git a/src/afs/AIX/osi_sleep.c b/src/afs/AIX/osi_sleep.c index 1e4c50b..fe49380 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;