* [PATCH] Typo in md.c
@ 2002-02-20 11:48 Jakob Kemi
0 siblings, 0 replies; only message in thread
From: Jakob Kemi @ 2002-02-20 11:48 UTC (permalink / raw)
To: Marcelo Tosatti; +Cc: linux-kernel
Hi Marcelo.
There's a small typo in drivers/md/md.c where detected_devices[] which should
be of the type kdev_t is wrongly typed as an int.
These are the only two references to detected_devices[]:
void md_autodetect_dev(kdev_t dev)
{
if (dev_cnt >= 0 && dev_cnt < 127)
detected_devices[dev_cnt++] = dev;
}
static void autostart_arrays(void)
{
...
for (i = 0; i < dev_cnt; i++) {
kdev_t dev = detected_devices[i];
...
}
Patch is included, please apply.
Regards,
Jakob Kemi
--- md.c.orig Tue Feb 19 14:08:15 2002
+++ md.c Wed Feb 20 12:38:58 2002
@@ -3708,7 +3708,7 @@
* Searches all registered partitions for autorun RAID arrays
* at boot time.
*/
-static int detected_devices[128];
+static kdev_t detected_devices[128];
static int dev_cnt;
void md_autodetect_dev(kdev_t dev)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-02-20 11:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-20 11:48 [PATCH] Typo in md.c Jakob Kemi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox