aboutsummaryrefslogtreecommitdiffstats
path: root/fs/pstore/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/pstore/inode.c')
-rw-r--r--fs/pstore/inode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/pstore/inode.c b/fs/pstore/inode.c
index 379a02dc1217..b3b426edb2fd 100644
--- a/fs/pstore/inode.c
+++ b/fs/pstore/inode.c
@@ -80,7 +80,8 @@ static int pstore_unlink(struct inode *dir, struct dentry *dentry)
80{ 80{
81 struct pstore_private *p = dentry->d_inode->i_private; 81 struct pstore_private *p = dentry->d_inode->i_private;
82 82
83 p->psi->erase(p->type, p->id, p->psi); 83 if (p->psi->erase)
84 p->psi->erase(p->type, p->id, p->psi);
84 85
85 return simple_unlink(dir, dentry); 86 return simple_unlink(dir, dentry);
86} 87}