projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f0b95f
)
insmod/modprobe: do not pass NULL to kernel as module parameter
author
Denis Vlasenko
<vda.linux@googlemail.com>
Fri, 13 Mar 2009 23:43:26 +0000
(23:43 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Fri, 13 Mar 2009 23:43:26 +0000
(23:43 -0000)
modutils/modutils.c
patch
|
blob
|
history
diff --git
a/modutils/modutils.c
b/modutils/modutils.c
index 5a4ba84e79c330c729bbc224d211facda6061a0f..405785ff5f1753b7fe8f44991de074108db4199a 100644
(file)
--- a/
modutils/modutils.c
+++ b/
modutils/modutils.c
@@
-115,6
+115,9
@@
int FAST_FUNC bb_init_module(const char *filename, const char *options)
char *image;
int rc = ENOENT;
+ if (!options)
+ options = "";
+
#if ENABLE_FEATURE_2_4_MODULES
if (get_linux_version_code() < KERNEL_VERSION(2,6,0))
return bb_init_module_24(filename, options);
@@
-123,10
+126,9
@@
int FAST_FUNC bb_init_module(const char *filename, const char *options)
/* Use the 2.6 way */
image = xmalloc_open_zipped_read_close(filename, &len);
if (image) {
+ rc = 0;
if (init_module(image, len, options) != 0)
rc = errno;
- else
- rc = 0;
free(image);
}