diff options
author | root <root@rshg054.dnsready.net> | 2012-02-01 23:14:54 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-02-01 23:14:54 +0000 |
commit | ac5ada660240f37d7347e42123071990f616e418 (patch) | |
tree | 31ac2c7efc492f2c67069b60f1a6ea7ff102ae94 /testing/kmod/0003-modprobe-handle-all-error-returns-from-init_module.patch | |
parent | c34f78dd37c2a2015d43de5d89748a2f8147ba1b (diff) |
Wed Feb 1 23:14:54 UTC 2012
Diffstat (limited to 'testing/kmod/0003-modprobe-handle-all-error-returns-from-init_module.patch')
-rw-r--r-- | testing/kmod/0003-modprobe-handle-all-error-returns-from-init_module.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/kmod/0003-modprobe-handle-all-error-returns-from-init_module.patch b/testing/kmod/0003-modprobe-handle-all-error-returns-from-init_module.patch new file mode 100644 index 000000000..5bbc93a90 --- /dev/null +++ b/testing/kmod/0003-modprobe-handle-all-error-returns-from-init_module.patch @@ -0,0 +1,34 @@ +From fdf78d80d298353c29e1fe8c00602669dd9662bb Mon Sep 17 00:00:00 2001 +From: Dave Reisner <dreisner@archlinux.org> +Date: Mon, 30 Jan 2012 23:05:26 -0500 +Subject: [PATCH 3/4] modprobe: handle all error returns from init_module + +--- + tools/kmod-modprobe.c | 4 +++- + 1 files changed, 3 insertions(+), 1 deletions(-) + +diff --git a/tools/kmod-modprobe.c b/tools/kmod-modprobe.c +index 3e51506..c882856 100644 +--- a/tools/kmod-modprobe.c ++++ b/tools/kmod-modprobe.c +@@ -551,6 +551,8 @@ static int insmod_do_insert_module(struct kmod_module *mod, const char *opts) + + err = kmod_module_insert_module(mod, flags, opts); + switch (err) { ++ case 0: ++ break; + case -EEXIST: + /* + * We checked for EEXIST with an earlier call to +@@ -564,7 +566,7 @@ static int insmod_do_insert_module(struct kmod_module *mod, const char *opts) + ERR("Module %s already in kernel.\n", + kmod_module_get_name(mod)); + break; +- case -EPERM: ++ default: + ERR("could not insert '%s': %s\n", kmod_module_get_name(mod), + strerror(-err)); + break; +-- +1.7.9 + |