Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie...
[cascardo/linux.git] / fs / pstore / inode.c
index 379a02d..b3b426e 100644 (file)
@@ -80,7 +80,8 @@ static int pstore_unlink(struct inode *dir, struct dentry *dentry)
 {
        struct pstore_private *p = dentry->d_inode->i_private;
 
-       p->psi->erase(p->type, p->id, p->psi);
+       if (p->psi->erase)
+               p->psi->erase(p->type, p->id, p->psi);
 
        return simple_unlink(dir, dentry);
 }