diff options
author | Fam Zheng <famz@redhat.com> | 2016-09-05 10:50:44 +0800 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2016-10-07 14:14:06 +0200 |
commit | dffa41b48651c4002af02e80b7459e56a77152c7 (patch) | |
tree | 909495655b4efc4182f9814d634d89ca8188996e /block/dmg-bz2.c | |
parent | 159975f38b2c88cd7b1fef511ba86dd7266a9f4e (diff) |
module: Don't load the same module if requested multiple times
Use a hash table to keep record of all loaded modules, and return early
if the requested module is already loaded.
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id: 1473043845-13197-3-git-send-email-famz@redhat.com
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block/dmg-bz2.c')
0 files changed, 0 insertions, 0 deletions