projects
/
platform
/
upstream
/
kmod.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1bc88c
)
Close /sys/module/$NAME directory if opening /proc/module fails.
author
Leandro Pereira
<leandro@hardinfo.org>
Tue, 29 Apr 2014 00:04:48 +0000
(21:04 -0300)
committer
Lucas De Marchi
<lucas.demarchi@intel.com>
Wed, 14 May 2014 23:24:19 +0000
(20:24 -0300)
libkmod/libkmod-module.c
patch
|
blob
|
history
diff --git
a/libkmod/libkmod-module.c
b/libkmod/libkmod-module.c
index
a160d5b
..
e3cc5a7
100644
(file)
--- a/
libkmod/libkmod-module.c
+++ b/
libkmod/libkmod-module.c
@@
-1802,6
+1802,7
@@
KMOD_EXPORT long kmod_module_get_size(const struct kmod_module *mod)
int err = -errno;
ERR(mod->ctx,
"could not open /proc/modules: %s\n", strerror(errno));
+ close(dfd);
return err;
}