summaryrefslogtreecommitdiffstats
path: root/sys/dev/streams
diff options
context:
space:
mode:
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 3fc97c6..1e3a708 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;
OpenPOWER on IntegriCloud