diff --git a/fs/nfs/delegation.c b/fs/nfs/delegation.c index e5f473d13e249b6804daa6a7c7e3d423df80c8e2..7f3f60641344437ab4f493eebf6093e39957c3be 100644 --- a/fs/nfs/delegation.c +++ b/fs/nfs/delegation.c @@ -125,6 +125,8 @@ static int nfs_delegation_claim_opens(struct inode *inode, const nfs4_stateid *s continue; if (!test_bit(NFS_DELEGATED_STATE, &state->flags)) continue; + if (!nfs4_valid_open_stateid(state)) + continue; if (!nfs4_stateid_match(&state->stateid, stateid)) continue; get_nfs_open_context(ctx);