diff options
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfscache.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/nfsd/nfscache.c b/fs/nfsd/nfscache.c index 5dd9ec2a177f..972c14a033ee 100644 --- a/fs/nfsd/nfscache.c +++ b/fs/nfsd/nfscache.c | |||
@@ -286,9 +286,7 @@ nfsd_cache_update(struct svc_rqst *rqstp, int cachetype, __be32 *statp) | |||
286 | cachv = &rp->c_replvec; | 286 | cachv = &rp->c_replvec; |
287 | cachv->iov_base = kmalloc(len << 2, GFP_KERNEL); | 287 | cachv->iov_base = kmalloc(len << 2, GFP_KERNEL); |
288 | if (!cachv->iov_base) { | 288 | if (!cachv->iov_base) { |
289 | spin_lock(&cache_lock); | ||
290 | rp->c_state = RC_UNUSED; | 289 | rp->c_state = RC_UNUSED; |
291 | spin_unlock(&cache_lock); | ||
292 | return; | 290 | return; |
293 | } | 291 | } |
294 | cachv->iov_len = len << 2; | 292 | cachv->iov_len = len << 2; |