* [PATCH] Wrong request_module line in genhd.c
@ 2003-12-15 0:50 Rusty Russell
0 siblings, 0 replies; only message in thread
From: Rusty Russell @ 2003-12-15 0:50 UTC (permalink / raw)
To: torvalds, akpm; +Cc: linux-kernel
This one was missed somehow. Fixes autoloading of loop devices.
Cheers,
Rusty.
Name: Block Alias Fix in genhd.c
Author: Rusty Russell
Status: Trivial
D: MODULE_ALIAS_BLOCK and genhd.c's request_module() don't match,
D: which breaks autoloading of loop devices.
diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal .2035-linux-2.6.0-test8-bk2/drivers/block/genhd.c .2035-linux-2.6.0-test8-bk2.updated/drivers/block/genhd.c
--- .2035-linux-2.6.0-test8-bk2/drivers/block/genhd.c 2003-10-09 18:02:51.000000000 +1000
+++ .2035-linux-2.6.0-test8-bk2.updated/drivers/block/genhd.c 2003-10-23 14:09:35.000000000 +1000
@@ -296,7 +296,7 @@ extern int blk_dev_init(void);
static struct kobject *base_probe(dev_t dev, int *part, void *data)
{
- request_module("block-major-%d", MAJOR(dev));
+ request_module("block-major-%d-%d", MAJOR(dev), MINOR(dev));
return NULL;
}
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-12-15 6:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-15 0:50 [PATCH] Wrong request_module line in genhd.c Rusty Russell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).