[PATCH] fix null pointer bugzilla 203737 . wich is triggered in function bio_set_dev(bio, bdev) in case bdev is null Signed-off-by: Kovtunenko Oleksandr <alexander198961@xxxxxxxxx>
From: Kovtunenko Oleksandr
Date: Thu Jul 18 2019 - 02:04:32 EST
---
fs/jfs/jfs_logmgr.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/jfs/jfs_logmgr.c b/fs/jfs/jfs_logmgr.c
index 9330eff..c2fcaa0 100644
--- a/fs/jfs/jfs_logmgr.c
+++ b/fs/jfs/jfs_logmgr.c
@@ -1209,6 +1209,7 @@ static int open_dummy_log(struct super_block *sb)
/* Make up some stuff */
dummy_log->base = 0;
dummy_log->size = 1024;
+ dummy_log->bdev = sb->s_bdev;
rc = lmLogInit(dummy_log);
if (rc) {
kfree(dummy_log);
--
1.8.3.1