kernel - fix fifofs kqueue broken on the 25th
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 29 Dec 2009 19:52:59 +0000 (11:52 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 29 Dec 2009 19:52:59 +0000 (11:52 -0800)
* A misnamed field caused kqueue ops to fail on filesystem fifos.

Reported-by: Jan Lentfer, Rumko
sys/vfs/fifofs/fifo_vnops.c

index 3fb1f6b..b966813 100644 (file)
@@ -422,7 +422,7 @@ static int
 filt_fiforead(struct knote *kn, long hint)
 {
        struct vnode *vp = (void *)kn->kn_hook;
-       struct socket *so = vp->v_fifoinfo->fi_writesock;
+       struct socket *so = vp->v_fifoinfo->fi_readsock;
        lwkt_tokref vlock;
 
        lwkt_gettoken(&vlock, &vp->v_token);