diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2012-01-02 12:38:50 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2012-01-02 12:38:50 +0100 |
commit | a8e49f591398ab3eae8c663a2764606b96f2a1a8 (patch) | |
tree | 37f2d85967282cf42ebff610252eb6ea9ee54c74 | |
parent | 220893b3cbdbf8932f95c44811b169a8f0d33939 (diff) |
builtin: kmod - hook up kmod_validate_resources()
-rw-r--r-- | udev/udev-builtin-kmod.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/udev/udev-builtin-kmod.c b/udev/udev-builtin-kmod.c index a5c76fc214..6719432c08 100644 --- 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) { - ctx = kmod_unref(ctx); 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"); + if (kmod_validate_resources(ctx) != KMOD_RESOURCES_OK) + return true; return false; } |