From 5be0039ce9e22f140a29e167526c64c723c5be3c Mon Sep 17 00:00:00 2001 From: rtm Date: Thu, 10 Aug 2006 22:08:14 +0000 Subject: interrupts could be recursive since lapic_eoi() called before rti so fast interrupts overflow the kernel stack fix: cli() before lapic_eoi() --- pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pipe.c') diff --git a/pipe.c b/pipe.c index c8da428..6f80810 100644 --- a/pipe.c +++ b/pipe.c @@ -34,7 +34,7 @@ pipe_alloc(struct fd **fd1, struct fd **fd2) p->writeopen = 1; p->writep = 0; p->readp = 0; - memset(&p->lock, 0, sizeof(p->lock)); + initlock(&p->lock, "pipe"); (*fd1)->type = FD_PIPE; (*fd1)->readable = 1; (*fd1)->writeable = 0; -- cgit v1.2.3