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

Commit 30c0e1ef authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

nfsd4: bad BUG() in preprocess_stateid_op



It's OK for this function to return without setting filp--we do it in
the special-stateid case.

And there's a legitimate case where we can hit this, since we do permit
reads on write-only stateid's.

Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 998db52c
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2983,7 +2983,6 @@ nfs4_preprocess_stateid_op(struct nfsd4_compound_state *cstate,
				*filpp = find_readable_file(stp->st_file);
			else
				*filpp = find_writeable_file(stp->st_file);
			BUG_ON(!*filpp); /* assured by check_openmode */
		}
	}
	status = nfs_ok;