commit | b1982674ae994b6ceda36dbee3fba3b2a6ba10de | [log] [tgz] |
---|---|---|
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | Wed Feb 15 12:18:03 2017 +0100 |
committer | Lucas De Marchi <lucas.demarchi@intel.com> | Thu Feb 16 08:50:01 2017 -0800 |
tree | 54c0f30d47094fdc2bcc8fc7d79fa06d70611743 | |
parent | ded0bebca80ac1f20caa488efb412aa72ea8a7fd [diff] |
module: fix a memory leak When a module is removed and re-inserted without unrefing, the kmod_file is unconditionally re-opened. This results in a memory and file descriptor leak. Fix it by checking if the file is already open in kmod_module_insert_module(). Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
This is a mirror only. Please see README file for more information.