diff options
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfs4proc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index d0848fc6529e..4a8314f08a0e 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c | |||
@@ -1071,6 +1071,8 @@ nfsd4_seek(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | |||
1071 | dprintk("NFSD: nfsd4_seek: couldn't process stateid!\n"); | 1071 | dprintk("NFSD: nfsd4_seek: couldn't process stateid!\n"); |
1072 | return status; | 1072 | return status; |
1073 | } | 1073 | } |
1074 | if (!file) | ||
1075 | return nfserr_bad_stateid; | ||
1074 | 1076 | ||
1075 | switch (seek->seek_whence) { | 1077 | switch (seek->seek_whence) { |
1076 | case NFS4_CONTENT_DATA: | 1078 | case NFS4_CONTENT_DATA: |