aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/rpc_pipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/rpc_pipe.c')
-rw-r--r--net/sunrpc/rpc_pipe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
index 28bcd52e3ce9..52f252432144 100644
--- a/net/sunrpc/rpc_pipe.c
+++ b/net/sunrpc/rpc_pipe.c
@@ -203,7 +203,7 @@ rpc_pipe_release(struct inode *inode, struct file *filp)
203 mutex_lock(&inode->i_mutex); 203 mutex_lock(&inode->i_mutex);
204 if (rpci->ops == NULL) 204 if (rpci->ops == NULL)
205 goto out; 205 goto out;
206 msg = (struct rpc_pipe_msg *)filp->private_data; 206 msg = filp->private_data;
207 if (msg != NULL) { 207 if (msg != NULL) {
208 spin_lock(&inode->i_lock); 208 spin_lock(&inode->i_lock);
209 msg->errno = -EAGAIN; 209 msg->errno = -EAGAIN;
@@ -325,7 +325,7 @@ rpc_pipe_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
325 len = rpci->pipelen; 325 len = rpci->pipelen;
326 if (filp->private_data) { 326 if (filp->private_data) {
327 struct rpc_pipe_msg *msg; 327 struct rpc_pipe_msg *msg;
328 msg = (struct rpc_pipe_msg *)filp->private_data; 328 msg = filp->private_data;
329 len += msg->len - msg->copied; 329 len += msg->len - msg->copied;
330 } 330 }
331 spin_unlock(&inode->i_lock); 331 spin_unlock(&inode->i_lock);