Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/miscfs/portal Pass the caller's proc* to soreceive() via...



details:   https://anonhg.NetBSD.org/src/rev/c71fb88e3b6a
branches:  trunk
changeset: 571164:c71fb88e3b6a
user:      atatat <atatat%NetBSD.org@localhost>
date:      Fri Nov 12 04:15:29 2004 +0000

description:
Pass the caller's proc* to soreceive() via auio.uio_procp so that
unp_externalize() is called properly.

Addresses PR kern/28194.

diffstat:

 sys/miscfs/portal/portal_vnops.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5515cc14b941 -r c71fb88e3b6a sys/miscfs/portal/portal_vnops.c
--- a/sys/miscfs/portal/portal_vnops.c  Fri Nov 12 02:39:21 2004 +0000
+++ b/sys/miscfs/portal/portal_vnops.c  Fri Nov 12 04:15:29 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: portal_vnops.c,v 1.56 2004/09/17 14:11:25 skrll Exp $  */
+/*     $NetBSD: portal_vnops.c,v 1.57 2004/11/12 04:15:29 atatat Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: portal_vnops.c,v 1.56 2004/09/17 14:11:25 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: portal_vnops.c,v 1.57 2004/11/12 04:15:29 atatat Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -415,7 +415,7 @@
        auio.uio_iovcnt = 2;
        auio.uio_rw = UIO_WRITE;
        auio.uio_segflg = UIO_SYSSPACE;
-       auio.uio_procp = NULL;
+       auio.uio_procp = p;
        auio.uio_offset = 0;
        auio.uio_resid = aiov[0].iov_len + aiov[1].iov_len;
 



Home | Main Index | Thread Index | Old Index