mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] set block device for dummy log . In this fix try to avoid null in the call  bio_set_dev(bio, bdev) because in case bdev is null we  have  NULL pointer dereference ticket reference https://bugzilla.kernel.org/show_bug.cgi?id=203737
@ 2019-06-17 14:13 Kovtunenko Oleksandr
  0 siblings, 0 replies; only message in thread
From: Kovtunenko Oleksandr @ 2019-06-17 14:13 UTC (permalink / raw)
  To: shaggy, jfs-discussion, linux-kernel; +Cc: alexander198961

---
 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 6b68df3..3cd7026 100644
--- a/fs/jfs/jfs_logmgr.c
+++ b/fs/jfs/jfs_logmgr.c
@@ -1223,6 +1223,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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-06-17 14:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-17 14:13 [PATCH] set block device for dummy log . In this fix try to avoid null in the call bio_set_dev(bio, bdev) because in case bdev is null we have NULL pointer dereference ticket reference https://bugzilla.kernel.org/show_bug.cgi?id=203737 Kovtunenko Oleksandr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®