Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 747c5534 authored by Steve Dickson's avatar Steve Dickson Committed by Trond Myklebust
Browse files

RPC: stops the release_pipe() funtion from being called twice



 This patch stops the release_pipe() funtion from being called
 twice by invalidating the ops pointer in the rpc_inode
 when rpc_pipe_release() is called.

 Signed-off-by: default avatarSteve Dickson <steved@redhat.com>
 Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 7f709a48
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -177,6 +177,8 @@ rpc_pipe_release(struct inode *inode, struct file *filp)
		__rpc_purge_upcall(inode, -EPIPE);
	if (rpci->ops->release_pipe)
		rpci->ops->release_pipe(inode);
	if (!rpci->nreaders && !rpci->nwriters)
		rpci->ops = NULL;
out:
	up(&inode->i_sem);
	return 0;