| Submitter | Shehjar Tikoo |
|---|---|
| Date | 2010-07-28 09:21:18 |
| Message ID | <1280308878-6450-1-git-send-email-shehjart@gluster.com> |
| Download | mbox | patch |
| Permalink | /patch/3941/ |
| State | Accepted |
| Delegated to: | Anand Avati |
| Headers | show |
Comments
Patch
diff --git a/xlators/nfs/server/src/nfs3-helpers.c b/xlators/nfs/server/src/nfs3-helpers.c index 699a290..4d4a253 100644 --- a/xlators/nfs/server/src/nfs3-helpers.c +++ b/xlators/nfs/server/src/nfs3-helpers.c @@ -1905,6 +1905,9 @@ nfs3_fdcache_update (struct nfs3_state *nfs3, fd_t *fd) int __nfs3_fdcache_remove_entry (struct nfs3_state *nfs3, struct nfs3_fd_entry *fde) { + if ((!fde) || (!nfs3)) + return 0; + gf_log (GF_NFS3, GF_LOG_TRACE, "Removing fd: 0x%lx: %d", (long int)fde->cachedfd, fde->cachedfd->refcount); list_del (&fde->list);