Initializes rendez in devmnt
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 1 Apr 2014 01:16:38 +0000 (18:16 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 1 Apr 2014 01:16:38 +0000 (18:16 -0700)
Can't just memset rendezes to 0.  If so, you'll PF at 0x14, since the
cv->lock is 0.

kern/drivers/dev/mnt.c

index 09a324e..1ee9ba7 100644 (file)
@@ -1080,6 +1080,7 @@ struct mntrpc *mntralloc(struct chan *c, uint32_t msize)
                        spin_unlock(&mntalloc.l);
                        exhausted("mount rpc header");
                }
+               rendez_init(&new->r);
                /*
                 * The header is split from the data buffer as
                 * mountmux may swap the buffer with another header.