summaryrefslogtreecommitdiff
path: root/sys/dev/streams
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2001-12-31 17:45:16 +0000
committerRobert Watson <rwatson@FreeBSD.org>2001-12-31 17:45:16 +0000
commit9c4d63da6d02a93225199fddd234c59c9074299c (patch)
tree7c8b2985310180ddd6c0718cf693e5b928d63555 /sys/dev/streams
parent536550c3f212ab19aacdeda790db27fa7253550d (diff)
Notes
Diffstat (limited to 'sys/dev/streams')
-rw-r--r--sys/dev/streams/streams.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/streams/streams.c b/sys/dev/streams/streams.c
index 3fc97c68b52e..1e3a708c9887 100644
--- a/sys/dev/streams/streams.c
+++ b/sys/dev/streams/streams.c
@@ -264,7 +264,8 @@ streamsopen(dev_t dev, int oflags, int devtype, struct thread *td)
if ((error = falloc(td, &fp, &fd)) != 0)
return error;
- if ((error = socreate(family, &so, type, protocol, td)) != 0) {
+ if ((error = socreate(family, &so, type, protocol,
+ td->td_proc->p_ucred, td)) != 0) {
p->p_fd->fd_ofiles[fd] = 0;
ffree(fp);
return error;