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

Commit af9dbaf4 authored by Kinglong Mee's avatar Kinglong Mee Committed by J. Bruce Fields
Browse files

nfsd: Fix a memory leak of struct file_lock

parent 1b6dc1df
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3934,6 +3934,7 @@ static int nfs4_setlease(struct nfs4_delegation *dp)
	if (!filp) {
		/* We should always have a readable file here */
		WARN_ON_ONCE(1);
		locks_free_lock(fl);
		return -EBADF;
	}
	fl->fl_file = filp;