We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19d8e91 commit 9c7d83aCopy full SHA for 9c7d83a
fs/pstore/inode.c
@@ -467,7 +467,7 @@ static struct dentry *pstore_mount(struct file_system_type *fs_type,
467
static void pstore_kill_sb(struct super_block *sb)
468
{
469
mutex_lock(&pstore_sb_lock);
470
- WARN_ON(pstore_sb != sb);
+ WARN_ON(pstore_sb && pstore_sb != sb);
471
472
kill_litter_super(sb);
473
pstore_sb = NULL;
0 commit comments