diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-08-31 21:56:48 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-08-31 21:56:48 +0000 |
commit | 04e458d435a3d1bf1be9c343aedd438483cb690f (patch) | |
tree | c7003a200a5196edfaa4f778dfbad0fae2db88c2 | |
parent | 1045d004628d401bc775200586f9a22d86fd0f06 (diff) | |
download | busybox-w32-04e458d435a3d1bf1be9c343aedd438483cb690f.tar.gz busybox-w32-04e458d435a3d1bf1be9c343aedd438483cb690f.tar.bz2 busybox-w32-04e458d435a3d1bf1be9c343aedd438483cb690f.zip |
insmod: fix detection of open failure
-rw-r--r-- | modutils/insmod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c index 09e7d6811..80dbfd78e 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c | |||
@@ -4275,7 +4275,7 @@ static int insmod_ng_main(int argc UNUSED_PARAM, char **argv) | |||
4275 | } | 4275 | } |
4276 | #else | 4276 | #else |
4277 | len = MAXINT(ssize_t); | 4277 | len = MAXINT(ssize_t); |
4278 | map = xmalloc_open_read_close(filename, &len); | 4278 | map = xmalloc_xopen_read_close(filename, &len); |
4279 | #endif | 4279 | #endif |
4280 | 4280 | ||
4281 | if (init_module(map, len, options) != 0) | 4281 | if (init_module(map, len, options) != 0) |