chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
220893b
)
builtin: kmod - hook up kmod_validate_resources()
author
Kay Sievers
<kay.sievers@vrfy.org>
Mon, 2 Jan 2012 11:38:50 +0000
(12:38 +0100)
committer
Kay Sievers
<kay.sievers@vrfy.org>
Mon, 2 Jan 2012 11:38:50 +0000
(12:38 +0100)
udev/udev-builtin-kmod.c
patch
|
blob
|
history
diff --git
a/udev/udev-builtin-kmod.c
b/udev/udev-builtin-kmod.c
index a5c76fc214d21c15ece146233020dcf8b95deddf..6719432c087dc03250f14226dc7e8760008cba32 100644
(file)
--- a/
udev/udev-builtin-kmod.c
+++ b/
udev/udev-builtin-kmod.c
@@
-122,14
+122,16
@@
static int builtin_kmod_init(struct udev *udev)
/* called on udev shutdown and reload request */
static void builtin_kmod_exit(struct udev *udev)
{
/* called on udev shutdown and reload request */
static void builtin_kmod_exit(struct udev *udev)
{
- ctx = kmod_unref(ctx);
info(udev, "unload module index\n");
info(udev, "unload module index\n");
+ ctx = kmod_unref(ctx);
}
/* called every couple of seconds during event activity; 'true' if config has changed */
static bool builtin_kmod_validate(struct udev *udev)
{
info(udev, "validate module index\n");
}
/* called every couple of seconds during event activity; 'true' if config has changed */
static bool builtin_kmod_validate(struct udev *udev)
{
info(udev, "validate module index\n");
+ if (kmod_validate_resources(ctx) != KMOD_RESOURCES_OK)
+ return true;
return false;
}
return false;
}