summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--udev/udev-builtin-kmod.c2
-rw-r--r--udev/udevd.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/udev/udev-builtin-kmod.c b/udev/udev-builtin-kmod.c
index 41de2ebc37..10afcd5db0 100644
--- a/udev/udev-builtin-kmod.c
+++ b/udev/udev-builtin-kmod.c
@@ -350,7 +350,7 @@ static int builtin_kmod_load(struct udev *udev)
static int builtin_kmod_unload(struct udev *udev)
{
- kmod_unref(ctx);
+ ctx = kmod_unref(ctx);
info(udev, "unload module index\n");
return 0;
}
diff --git a/udev/udevd.c b/udev/udevd.c
index d1f7cd8909..a5ef24417d 100644
--- a/udev/udevd.c
+++ b/udev/udevd.c
@@ -1701,6 +1701,9 @@ int main(int argc, char *argv[])
rules = rules_new;
}
reload_config = 0;
+
+ udev_builtin_unload(udev);
+ udev_builtin_load(udev);
}
}