diff options
Diffstat (limited to 'net/sunrpc/rpc_pipe.c')
-rw-r--r-- | net/sunrpc/rpc_pipe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index 95ccbcf45d3e..1f7fc502a508 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c | |||
@@ -204,7 +204,7 @@ rpc_pipe_release(struct inode *inode, struct file *filp) | |||
204 | mutex_lock(&inode->i_mutex); | 204 | mutex_lock(&inode->i_mutex); |
205 | if (rpci->ops == NULL) | 205 | if (rpci->ops == NULL) |
206 | goto out; | 206 | goto out; |
207 | msg = (struct rpc_pipe_msg *)filp->private_data; | 207 | msg = filp->private_data; |
208 | if (msg != NULL) { | 208 | if (msg != NULL) { |
209 | spin_lock(&inode->i_lock); | 209 | spin_lock(&inode->i_lock); |
210 | msg->errno = -EAGAIN; | 210 | msg->errno = -EAGAIN; |
@@ -322,7 +322,7 @@ rpc_pipe_ioctl_unlocked(struct file *filp, unsigned int cmd, unsigned long arg) | |||
322 | len = rpci->pipelen; | 322 | len = rpci->pipelen; |
323 | if (filp->private_data) { | 323 | if (filp->private_data) { |
324 | struct rpc_pipe_msg *msg; | 324 | struct rpc_pipe_msg *msg; |
325 | msg = (struct rpc_pipe_msg *)filp->private_data; | 325 | msg = filp->private_data; |
326 | len += msg->len - msg->copied; | 326 | len += msg->len - msg->copied; |
327 | } | 327 | } |
328 | return put_user(len, (int __user *)arg); | 328 | return put_user(len, (int __user *)arg); |