Kernel Newbies archive on lore.kernel.org
 help / color / Atom feed
* Fix for https://bugzilla.kernel.org/show_bug.cgi?id=203737
@ 2019-06-17 14:27 Саша Ковтуненко
  2019-06-17 15:58 ` Matwey V. Kornilov
  0 siblings, 1 reply; 2+ messages in thread
From: Саша Ковтуненко @ 2019-06-17 14:27 UTC (permalink / raw)
  To: kernelnewbies

[-- Attachment #1.1: Type: text/plain, Size: 488 bytes --]

Hello ,
I am trying to fix https://bugzilla.kernel.org/show_bug.cgi?id=203737 in
this way:
--- 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;
There seems bio_set_dev(bio, bdev) in case bdev is null then we get error .
Is this fix looks ok ?
Thanks
AK

[-- Attachment #1.2: Type: text/html, Size: 709 bytes --]

<div dir="ltr"><div>Hello ,<br></div><div>I am trying to fix <a href="https://bugzilla.kernel.org/show_bug.cgi?id=203737">https://bugzilla.kernel.org/show_bug.cgi?id=203737</a> in this way:<br></div><div>--- a/fs/jfs/jfs_logmgr.c<br>+++ b/fs/jfs/jfs_logmgr.c<br>@@ -1223,6 +1223,7 @@ static int open_dummy_log(struct super_block *sb)<br>                /* Make up some stuff */<br>                dummy_log-&gt;base = 0;<br>                dummy_log-&gt;size = 1024;<br>+               dummy_log-&gt;bdev = sb-&gt;s_bdev;</div><div>There seems bio_set_dev(bio, bdev) in case bdev is null then we get error . Is this fix looks ok ?</div><div>Thanks</div><div>AK<br></div></div>

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Fix for https://bugzilla.kernel.org/show_bug.cgi?id=203737
  2019-06-17 14:27 Fix for https://bugzilla.kernel.org/show_bug.cgi?id=203737 Саша Ковтуненко
@ 2019-06-17 15:58 ` Matwey V. Kornilov
  0 siblings, 0 replies; 2+ messages in thread
From: Matwey V. Kornilov @ 2019-06-17 15:58 UTC (permalink / raw)
  To: kernelnewbies


Hi,

I think the following will help you:
https://www.kernel.org/doc/html/v5.1/process/submitting-patches.html

17.06.2019 17:27, Саша Ковтуненко пишет:
> Hello ,
> I am trying to fix https://bugzilla.kernel.org/show_bug.cgi?id=203737 in
> this way:
> --- 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;
> There seems bio_set_dev(bio, bdev) in case bdev is null then we get error .
> Is this fix looks ok ?
> Thanks
> AK
> 
> 
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> 



_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-17 14:27 Fix for https://bugzilla.kernel.org/show_bug.cgi?id=203737 Саша Ковтуненко
2019-06-17 15:58 ` Matwey V. Kornilov

Kernel Newbies archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/kernelnewbies/0 kernelnewbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kernelnewbies kernelnewbies/ https://lore.kernel.org/kernelnewbies \
		kernelnewbies@kernelnewbies.org kernelnewbies@archiver.kernel.org
	public-inbox-index kernelnewbies


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernelnewbies.kernelnewbies


AGPL code for this site: git clone https://public-inbox.org/ public-inbox