* bug in UBI
@ 2007-07-04 10:20 Vinit Agnihotri
2007-07-04 10:41 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Vinit Agnihotri @ 2007-07-04 10:20 UTC (permalink / raw)
To: linux-mtd
When attaching a UBI to a mtd device, UBI reports following mesage
UBI: attached mtd0 to ubi1
I use AMD 64Bit dual core processor with 2.6.18.3 kernel.
heres my /proc/mtd output
[root@localhost ~]# cat /proc/mtd
dev: size erasesize name
mtd0: 0000000008000000 0000000000400000 "mtd0"
After insertion of UBI module, UBI displays message
UBI: attached mtd0 to ubi1
However UBI creates device entry as /dev/ubi0, so message is incorrect.
I looked into code & it requires some code lines to be ordered properly.
heres the patch:
signedoff by Vinit Agnihotri
--- build.c.orig 2007-07-04 15:49:44.000000000 +0530
+++ build.c 2007-07-04 15:50:32.000000000 +0530
@@ -593,7 +593,6 @@
if (err)
goto out_detach;
- ubi_devices_cnt += 1;
ubi_msg("attached mtd%d to ubi%d", ubi->mtd->index, ubi_devices_cnt);
ubi_msg("MTD device name: \"%s\"", ubi->mtd->name);
@@ -624,6 +623,7 @@
wake_up_process(ubi->bgt_thread);
}
+ ubi_devices_cnt += 1;
return 0;
out_detach:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: bug in UBI
2007-07-04 10:20 bug in UBI Vinit Agnihotri
@ 2007-07-04 10:41 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2007-07-04 10:41 UTC (permalink / raw)
To: Vinit Agnihotri; +Cc: linux-mtd
On Wed, 2007-07-04 at 15:50 +0530, Vinit Agnihotri wrote:
> When attaching a UBI to a mtd device, UBI reports following mesage
> UBI: attached mtd0 to ubi1
Thank you for the catch!
However, if you want your patch to be committed and you to be the author
of the patch, send correctly made patch, with correct Signed-off-by.
Make sure I can use git-am to commit your patch. Google for more
information how to submit kernel patches.
Or I cam fix the print problem this myself and add you at Reported-by:.
I am fine with both.
Thanks, Artem.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-04 10:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-04 10:20 bug in UBI Vinit Agnihotri
2007-07-04 10:41 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox