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

Commit 26c78e15 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFSv4: Fix an Oops in nfs_do_expire_all_delegations



 If the loop errors, we need to exit.

 Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 58df095b
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -236,7 +236,6 @@ int nfs_do_expire_all_delegations(void *ptr)
	struct nfs4_client *clp = ptr;
	struct nfs_delegation *delegation;
	struct inode *inode;
	int err = 0;

	allow_signal(SIGKILL);
restart:
@@ -250,9 +249,8 @@ restart:
		if (inode == NULL)
			continue;
		spin_unlock(&clp->cl_lock);
		err = nfs_inode_return_delegation(inode);
		nfs_inode_return_delegation(inode);
		iput(inode);
		if (!err)
		goto restart;
	}
out: