summaryrefslogtreecommitdiff
path: root/fs/pstore/inode.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2021-03-05 17:21:25 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2021-03-05 17:21:25 -0800
commit8b24ef44789c990329a15a287ae0e634720745e8 (patch)
treecf8e5d3d2128af921a0cfa48e0e9a658e36bac27 /fs/pstore/inode.c
parent63dcd69d9b497c045c4169cddc6a24e1a7428f88 (diff)
parent7db688e99c0f770ae73e0f1f3fb67f9b64266445 (diff)
Merge tag 'pstore-v5.12-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
Pull pstore fixes from Kees Cook: - Rate-limit ECC warnings (Dmitry Osipenko) - Fix error path check for NULL (Tetsuo Handa) * tag 'pstore-v5.12-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux: pstore/ram: Rate-limit "uncorrectable error in header" message pstore: Fix warning in pstore_kill_sb()
Diffstat (limited to 'fs/pstore/inode.c')
-rw-r--r--fs/pstore/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/pstore/inode.c b/fs/pstore/inode.c
index 93a217e4f563..14658b009f1b 100644
--- a/fs/pstore/inode.c
+++ b/fs/pstore/inode.c
@@ -467,7 +467,7 @@ static struct dentry *pstore_mount(struct file_system_type *fs_type,
static void pstore_kill_sb(struct super_block *sb)
{
mutex_lock(&pstore_sb_lock);
- WARN_ON(pstore_sb != sb);
+ WARN_ON(pstore_sb && pstore_sb != sb);
kill_litter_super(sb);
pstore_sb = NULL;