Skip to contentSkip to conversation

Wrong request_module line in genhd.c

PATCH New Rusty Russell 1 participant 1 message Dec 15, 2003 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Wrong request_module line in genhd.c

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.

drivers/block/genhd.c +1 -1
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
@@ -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.