diff options
Diffstat (limited to 'xlators/protocol/server/src/server-rpc-fops.c')
-rw-r--r-- | xlators/protocol/server/src/server-rpc-fops.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/protocol/server/src/server-rpc-fops.c b/xlators/protocol/server/src/server-rpc-fops.c index 5bb40a77515..54081625a5c 100644 --- a/xlators/protocol/server/src/server-rpc-fops.c +++ b/xlators/protocol/server/src/server-rpc-fops.c @@ -35,6 +35,10 @@ void forget_inode_if_no_dentry (inode_t *inode) { + if (!inode) { + return; + } + if (!inode_has_dentry (inode)) inode_forget (inode, 0); |