]> git.hungrycats.org Git - linux/commit
[PATCH] call_usermodehelper retval fix
authorAndrew Morton <akpm@osdl.org>
Tue, 30 Dec 2003 09:00:38 +0000 (01:00 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 30 Dec 2003 09:00:38 +0000 (01:00 -0800)
commitbe907e4960755592d7960dc0bfb072a9431e5e1c
tree55d7a9383e6f671d35bc41de910cd0c074419db1
parent6a429be87c98decee3e4f22e218168365fe7fd19
[PATCH] call_usermodehelper retval fix

The reworked firmware loader in the DVB patches needs the fix to the
call_usermodehelper() return value.

From: Rusty Russell <rusty@rustcorp.com.au>

MODULE_ALIAS_BLOCK() and MODULE_ALIAS_CHAR() define aliases of form
"XXX-<major>-<minor>", so we should probe for modules using this form.
Unfortunately in 2.4, block aliases were "XXX-<major>" and char aliases
were of both forms.

Ideally, all modules would now be using MODULE_ALIAS() macros to define
their aliases, and the old configuration files wouldn't matter as much.
Unfortunately, this hasn't happened, so we make request_module() return the
exit status of modprobe, and then do fallback when probing for char and
block devices.

(Kudos to Chris Wright, I stole his kernel_thread flags).
drivers/block/genhd.c
fs/char_dev.c
include/linux/kmod.h
kernel/kmod.c