summaryrefslogtreecommitdiff
path: root/modutils
diff options
context:
space:
mode:
authorDenis Vlasenko2008-08-31 21:56:48 +0000
committerDenis Vlasenko2008-08-31 21:56:48 +0000
commit04e458d435a3d1bf1be9c343aedd438483cb690f (patch)
treec7003a200a5196edfaa4f778dfbad0fae2db88c2 /modutils
parent1045d004628d401bc775200586f9a22d86fd0f06 (diff)
downloadbusybox-04e458d435a3d1bf1be9c343aedd438483cb690f.zip
busybox-04e458d435a3d1bf1be9c343aedd438483cb690f.tar.gz
insmod: fix detection of open failure
Diffstat (limited to 'modutils')
-rw-r--r--modutils/insmod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c
index 09e7d68..80dbfd7 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -4275,7 +4275,7 @@ static int insmod_ng_main(int argc UNUSED_PARAM, char **argv)
}
#else
len = MAXINT(ssize_t);
- map = xmalloc_open_read_close(filename, &len);
+ map = xmalloc_xopen_read_close(filename, &len);
#endif
if (init_module(map, len, options) != 0)