Messages in this thread Patch in this message | ![/](/images/icornerl.gif) | | From | Rusty Russell <> | Subject | [PATCH] Wrong request_module line in genhd.c | Date | Mon, 15 Dec 2003 11:50:14 +1100 |
| |
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. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| ![\](/images/icornerr.gif) |