summaryrefslogtreecommitdiffstats
path: root/sys/compat/svr4/svr4_stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/svr4/svr4_stream.c')
-rw-r--r--sys/compat/svr4/svr4_stream.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/compat/svr4/svr4_stream.c b/sys/compat/svr4/svr4_stream.c
index 2f0d5e3..1618ac1 100644
--- a/sys/compat/svr4/svr4_stream.c
+++ b/sys/compat/svr4/svr4_stream.c
@@ -1267,7 +1267,8 @@ i_nread(fp, td, retval, fd, cmd, dat)
* for us, and if we do, then we assume that we have at least one
* message waiting for us.
*/
- if ((error = fo_ioctl(fp, FIONREAD, (caddr_t) &nread, td)) != 0)
+ if ((error = fo_ioctl(fp, FIONREAD, (caddr_t) &nread, td->td_ucred,
+ td)) != 0)
return error;
if (nread != 0)
OpenPOWER on IntegriCloud