]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/modules-load/modules-load.c
kmod_module_probe_insert_module returns 0 on success, != 0 on failure
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 8 Oct 2017 14:18:57 +0000 (16:18 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 8 Oct 2017 20:29:32 +0000 (22:29 +0200)
commit2c3f0bb207f89f0347a4a84a8cde57e979f33896
tree7c9d89c7710e97ca1a691fa6fbf1b385cbc1de5d
parent232ac0d6810498dc7a3a6b9d1fd4dca983e1535f
kmod_module_probe_insert_module returns 0 on success, != 0 on failure

More specifically, it should return > 0 only for conditions specified in
probe_flags. We only set KMOD_PROBE_APPLY_BLACKLIST in probe_flags, so the
code was correct, but add an assert to clarify this.
src/modules-load/modules-load.c
src/test/test-netlink-manual.c